Answer to Question #154852 in C++ for zain ul abdeen

Question #154852
Write a program which takes two integers (num1 and num2) as input from the user.

Your program should display on the screen the result of i) num1 + num2, ii) num1 * num2, and iii) num1 - num2.
1
Expert's answer
2021-01-12T10:13:06-0500
#include <iostream>

using namespace std;

int main()
{
int num1, num2;
cin>>num1>>num2;
cout<<num1+num2<<endl;
cout<<num1*num2<<endl;
cout<<num1-num2<<endl;
}

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