Answer to Question #265467 in C++ for Abrar

Question #265467

Write a C++ program that takes two integer numbers from user as

input, and display their sum.


1
Expert's answer
2021-11-15T17:30:20-0500
#include<iostream>
using namespace std;

int main()
{
	int num1;
	cout << "Please, enter the first number: ";
	cin >> num1;
	int num2;
	cout << "Please, enter the second number: ";
	cin >> num2;
	cout << "The sum of two numbers is " << num1 + num2;
}

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
APPROVED BY CLIENTS