Computer Science, asked by ShivalikaSrivastava, 7 months ago

write a program in c++ to print the sum of any two numbers​

Answers

Answered by sweetyhema757
4

Answer:

C++ Exercises: Print the sum of two numbers using variables

Pictorial Presentation:

Sample Solution:

C++ Code : #include <iostream> using namespace std; int main() { cout << "\n\n Print the sum of two numbers :\n"; cout << "-----------------------------------\n"; int a; int b; int sum; a=29; b=30; sum=a+b; cout << " The sum of "<< a << " and "<<b <<" is : "<< sum <<"\n\n" ; }

Similar questions