Assignments » Variable, Operator and Expression » Set1 » Solution 3

Write a program which accept two numbers and print their sum.


#include<iostream>
using namespace std;

int main()
{
	int a,b,c;
	cout<< "\nEnter first number : ";
	cin>>a;
	cout<<"\nEnter second number : ";
	cin>>b;
	c=a+b;
	cout<<"\nThe Sum is : "<<c;
	
	
	return 0;
}

Enter first number : 81
Enter second number : 93
The Sum is : 174