Showing posts with label Add Numbers. Show all posts
Showing posts with label Add Numbers. Show all posts

Sunday, 7 October 2012

C# Add Two Numbers

 How To Add Two Numbers ?
This post to help to add two numbers..  value1 and value2 are the Static numbers.
in Visual Studio double click the button after write this code..

  private void button1_Click(object sender, EventArgs e)
        {
            int Value1;
            int Value2;
            int Result;
            Value1 = 10;
            Value2 = 20;
            Result = Value1 + Value2;
            MessageBox.Show(Result.ToString());
        }

Finaly we get the answer in one message box..