Multiplication
//Write a c++ program to perform multiplication of two given numbers?
#include <iostream>
using namespace std;
int main()
{
int Num1,Num2,product;
cout << "Enter two integers: ";
cin >>Num1>>Num2;
// product of two numbers is stored in variable product
product=Num1*Num2;
// Prints product
cout<<Num1<<" * "<<Num2<<" = "<<product;
return 0;
}
Comments
Post a Comment