msgbartop
Arama Motoru Optimizasyonu , Scriptler ,Genel Bilgiler ve SEO Makaleleri
msgbarbottom

26 Kas 09 CSharp Küçük sayıyı çıkartan Örnek

Forma 2 adet textbox bir tanede buton ekleyip butonun click olayına aşağıdaki kodu yazın.

int a, b;

a = Int32.Parse(textBox1.Text);

b=Int32.Parse(textBox2.Text);

if(a>b)

MessageBox.Show(Convert.ToString(a-b));

else

MessageBox.Show(Convert.ToString(b – a));

Tags: ,

Leave a Comment