Multiple 2 number in C++ by R4R Team

Example-
First number n1=10
Second number n2=20
Multiplication is 200


program-

#include
using namespace std;
int main()
{
int a, b, c;
cout << "Enter two numbersn";
cin >> a >> b;
c = a*b;
cout <<"Multiplication is: " << c;
}


output-

Enter two numbers
3 5
Multiplication is: 15

-In this program, we store two number in variable 'a' and 'b' then multiple a and b and store in variable 'c'. then display using cout.




Leave a Comment:
Search
Categories
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!