Multiply Calculator in C++,C++ basics, C++ Programming
Hi there Bilal Ahmad is here and now I will tell you how to create very basic and simple multiply calculator in C++ Language, first of all, we will see that how it is created in C++ language then we will explain the program and finally we also look at the example also.
So lets Start.
Simple Multiply Calculator In C++:
#include<iostream>
using namespace std;
int main()
{
int input1=0,input2=0,multiply=0;
count<<"please enter the 1st number to multiply=";
cin>>input1;
count<<"please enter the 2nd number to multiply=:
cin>>input2;
multiply=input1*input2;
count<<"the multiplications of number="<<multiply<<endl;
return 0;
}
Now the explanation of this code:
First of all, we use the command isotream for input and output the values.
Int main is the function in this directory.
Ten we use inputs 1 and 2 respectively.
We multiply and save the values in the multiply variables.
And finally, we output the multiply the values.
Now we look at the examples:
So let's suppose users take the 5 and 10 values for input 1 and 2 respectively.
The program than multiply the two numbers and then save the values in the multiply variable.
Then we simply get the value 50 after multiplications.
Hope to see you again.
With best regards,
Bilal Ahmad.
So lets Start.
Simple Multiply Calculator In C++:
#include<iostream>
using namespace std;
int main()
{
int input1=0,input2=0,multiply=0;
count<<"please enter the 1st number to multiply=";
cin>>input1;
count<<"please enter the 2nd number to multiply=:
cin>>input2;
multiply=input1*input2;
count<<"the multiplications of number="<<multiply<<endl;
return 0;
}
Now the explanation of this code:
First of all, we use the command isotream for input and output the values.
Int main is the function in this directory.
Ten we use inputs 1 and 2 respectively.
We multiply and save the values in the multiply variables.
And finally, we output the multiply the values.
Now we look at the examples:
So let's suppose users take the 5 and 10 values for input 1 and 2 respectively.
The program than multiply the two numbers and then save the values in the multiply variable.
Then we simply get the value 50 after multiplications.
Hope to see you again.
With best regards,
Bilal Ahmad.

Leave a Comment