Arithmetic Operation

Design

    using System;
    using System.Collections.Generic;
    using System.componentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
                   
    namespace_3rd_Program_Add_Sub_Mul_Div
    {
        public partial class Form1: Form
        {
            public From()
            {
                InitializeComponent
            }
            private void button1_Click(object sender, EventArgs e)
            {
                 int a,b,c;

                 a = Convert.ToInt16(textbox1.Text);
                 b = Convert.ToInt16(textbox2.Text);

                 c =  a + b;

                 textBox3.Text=c.ToString();
            }
            private void button2_Click(object sender, EventArgs e)
            {
                 int a,b,c;

                 a = Convert.ToInt16(textbox1.Text);
                 b = Convert.ToInt16(textbox2.Text);

                 c =  a - b;

                 textBox3.Text=c.ToString();
            }
            private void button3_Click(object sender, EventArgs e)
            {   
               int a,b,c;

               a = Convert.ToInt16(textbox1.Text);
               b = Convert.ToInt16(textbox2.Text);

               c =  a * b;

               textBox3.Text=c.ToString();
               
            }
            private void button4_Click(object sender, EventArgs e)
            { 
                int a,b,c;

                a = Convert.ToInt16(textbox1.Text);
                b = Convert.ToInt16(textbox2.Text);

                c =  a / b;

                textBox3.Text=c.ToString();                
            }
        }
    }
                

Output

Output Example