Add Two Numbers


Addition of  Two Numbers

We will  create Source codes to add the numbers.
  1. We will add two numbers that are stored in 2 different variables.

 Explanation

  1. In the program,num1is assigned 2 and num2 is assigned 6.
  2. These two variable are added using " + " operator and the result is stored in the sum   variable using :
sum = num1 + num2

    3.Finally the sum is displayed on the screen.