Answer to Question #200805 in C++ for saad bhatti

Question #200805

C++ Program to Add Two Numbers

1
Expert's answer
2021-05-30T07:30:03-0400

//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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog