Add Two Numbers
Addition of Two Numbers
We will create Source codes to add the numbers.
- We will add two numbers that are stored in 2 different variables.
Explanation
- In the program,num1is assigned 2 and num2 is assigned 6.
- These two variable are added using " + " operator and the result is stored in the sum variable using :
sum = num1 + num2