Answer to Question #242484 in C++ for opr

Question #242484

Write a c++ program to accept a two numbers from the user multiply the two numbers and display the results to the user


1
Expert's answer
2021-09-30T13:01:08-0400
#include <iostream>
using namespace std;




int main(){
	int number1;
	int number2;
	cout<<"Enter number 1: ";
	cin>>number1;
	cout<<"Enter number 2: ";
	cin>>number2;




	int product=number1*number2;
	cout<<number1<<" * "<<number2<<" = "<<product<<"\n\n";


	cin>>number1;
	return 0;


}

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