Write a c++ program to accept a two numbers from the user multiply the two numbers and display the results to the user
#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;
}
Comments
Leave a comment