Question #200805

C++ Program to Add Two Numbers

Expert's answer

//A program to add two numbers

#include <iostream>
using namespace std;
int main()
{
	int a,b,sum;
	cout<<"Enter two numbers to add\n";
	cin>>a>>b;
	sum=a+b;
	cout<<"Result = "<<sum;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS