namespace WindowsFormsApplication4
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
double sayi,sonuc,c;
private void button1_Click(object sender, EventArgs e)
{
sayi = int.Parse(textBox1.Text);
c = int.Parse(textBox3.Text);
sonuc = sayi * c;
textBox2.Text = sonuc.ToString();
}
private void button2_Click(object sender, EventArgs e)
{
double bolum;
sayi = int.Parse(textBox1.Text);
c = int.Parse(textBox3.Text);
bolum = sayi / c;
textBox2.Text = bolum.ToString();
}
private void button3_Click(object sender, EventArgs e)
{
sayi = int.Parse(textBox1.Text);
c = int.Parse(textBox3.Text);
sonuc = sayi - c;
textBox2.Text = sonuc.ToString();
}
private void button4_Click(object sender, EventArgs e)
{
sayi = int.Parse(textBox1.Text);
c = int.Parse(textBox3.Text);
sonuc = sayi + c;
textBox2.Text = sonuc.ToString();
}
private void button5_Click(object sender, EventArgs e)
{
sayi = int.Parse(textBox1.Text);
c = int.Parse(textBox3.Text);
sonuc = sayi % c;
textBox2.Text = sonuc.ToString();
}
private void button6_Click(object sender, EventArgs e)
{
sayi = int.Parse(textBox1.Text);
c = int.Parse(textBox3.Text);
sonuc = Math.Pow(sayi,c);
textBox2.Text = sonuc.ToString();
}
}
}
Hiç yorum yok:
Yorum Gönder