C#’ta işlemler
C#’ta toplama, çıkarma, çarpma, bölme ve üs alma işlemleri

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication3
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
textBox3.Text = Convert.ToString(Convert.ToInt32(textBox1.Text) + Convert.ToInt32(textBox2.Text));
}
private void button2_Click(object sender, EventArgs e)
{
textBox3.Text = Convert.ToString(Convert.ToInt32(textBox1.Text) – Convert.ToInt32(textBox2.Text));
}
private void button3_Click(object sender, EventArgs e)
{
textBox3.Text = Convert.ToString(Convert.ToInt32(textBox1.Text) * Convert.ToInt32(textBox2.Text));
}
private void button4_Click(object sender, EventArgs e)
{
textBox3.Text = Convert.ToString(Convert.ToDouble(textBox1.Text) / Convert.ToDouble(textBox2.Text));
}
private void button5_Click(object sender, EventArgs e)
{
int i, a, b, c = 1;
a = Convert.ToInt32(textBox1.Text);
b = Convert.ToInt32(textBox2.Text);
for (i = 1; i <= b; i++)
c = c * a;
textBox3.Text=Convert.ToString(c);
}
}
}

Elıne Saglık Arkadasım…
Eyvallah arkadaşım ..
Açıklayıcı bir program olmuş. Teşekkür ederim.
Bir şey değil.
xtBox3.Text = Convert.ToString(Convert.ToInt32(textBox1.Text) + Convert.ToInt32(textBox2.Text));
Ohh dude i gotta say that was really short one.4 me done is done such bellow
string firstnumber=textbox1.text;
string secondnumber=textbox2.text;
int sayi1;
int sayi2;
sayi1=convert.ToInt32(firstnumber);
sayi2=convert.ToInt32(secondnumber);
int combination=sayi1+sayi2;
textbox3.text=combination.ToString();