harf=shifrteskst.ToCharArray();
int[]k=new int[harf.Length];
for (int i=0; i
{
k[1]=(int)harf[i];
}
int kalit=Convert.ToInt32(textBox2.Text);
kalit=kalit%26;
For(int i=0;i
{
If(k[i]>=97&&k[i]<=122)
If (k[i]>=65&&k[i]<=90)
{
k[i]=(k[i]-65+26)%26+65;
harf[i]=(char)k[i];
}
label1.Text+==harf[i].ToString();
}
}
}
else
{
label1.Text=”Barcha parametrlar kiritilgan.iltimos barchasini kiritib qaytadan urinib ko’ring”;
}
}
private void textBox1_TextChangeddd(object sender,EventArgs e)
{
}
private void radioButton1_CheckedChanged(object sender,EventArgs e)
{
}
private void textBox1_MouseeClick(object sender,MouseEventArgs e)
{
textBox1.Text=” ”;
}
private void textBox2_MouseeClick(object sender,MouseEventArgs e)
{
textBox2.Text=” ”;
}
private void Sezar_shifrlash_Load(object sender, EventArgs e)
{
}
}
}
Do'stlaringiz bilan baham: |