Multiply Two Integers
#include<iostream.h>
main()
{
//Declare variable
int multiply,num1,num2;
//Input num1
cout<<"Enter num1 =";
cin>>num1;
//Input num2
cout<<"Enter Num 2 =";
cin>>num2;
//Formula
multiply=num1*num2;
//Output
cout<<"mutiply= "<<mutiply;
return 0;
}
main()
{
//Declare variable
int multiply,num1,num2;
//Input num1
cout<<"Enter num1 =";
cin>>num1;
//Input num2
cout<<"Enter Num 2 =";
cin>>num2;
//Formula
multiply=num1*num2;
//Output
cout<<"mutiply= "<<mutiply;
return 0;
}
by: Echelon Tech Group
No comments:
Post a Comment