Multiply Two Number in c++ Program
Description:
In this post you can learn how you can Multiply two numbers
easily by
making a
simple C++ program at Turbo C++ software. Turbo c++ make it easy for
you to learn programming with in no time. Here you can learn how you can Multiply two number easily by putting the
codded program given you
below.
Program Structure:
#include<iostream.h>
#include<conio.h>
void main()
{
int a,b,multiple;
cout<<"This is my Third Program"<<endl;
cout<<"Multiple of Two"<<endl;
cout<<"First Number: ";
cin>>a;
cout<<"/nsecond number: ";
cin>>b;
multiple=a*b;
cout<<"/nmultiple= "<<multiple;
getch();
}
#include<conio.h>
void main()
{
int a,b,multiple;
cout<<"This is my Third Program"<<endl;
cout<<"Multiple of Two"<<endl;
cout<<"First Number: ";
cin>>a;
cout<<"/nsecond number: ";
cin>>b;
multiple=a*b;
cout<<"/nmultiple= "<<multiple;
getch();
}
Program Explanation:
The whole program can be explained easily below in points.
- Void main() is the predefined function.
- Cout<< the command to show the desired text or result on screen.
- Int represents the number or answers without decimal involved in it..
- /n command to make the program to go to next line.
- #Include<iostream> directives to show results.
- Cin>> to add data by the user function.
- { } opening and closing boundary of the program body.
Post a Comment