Program to multiply two numbers

 
#include<iostream.h>

#include<conio.h>
void main()
{
       clrscr();
       int a,b,c;
       cout<<"\n enter a=";
       cin>>a;
       cout<<"\n enter b=";
       cin>>b;
       c=a*b;
       cout<<"\n  multiplication="<<c;
       getch();


 }


OUTPUT

 enter a=5

 enter b=2

 multiplication=10

Comments :

Post a Comment