Program:-
Write a c++ program that inputs two numbers from user and adds these numbers then prints the sum of these numbers.
Solution:-
Steps to write the program:
- Firstly Declare two variables of integer data type.
- Get input values from the user using cin>>.
- Declare the sum variable in which the sum is stored.
- Print the value of the sum variable.