Write a C++ program that takes two integer numbers from user as
input, and display their sum.
#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;
}
Comments
Leave a comment