write a program in c++ to print the sum of any two numbers
Answers
Answered by
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
English,
3 months ago
English,
3 months ago
Chemistry,
3 months ago
Computer Science,
7 months ago
English,
1 year ago