Pages

Sunday 6 November 2011

Multiplication of two numbers


1.     Multiplication of two numbers

// Multiplication of two numbers
#include<iostream.h>
#include<conio.h>
void main()
{
int a,b,c;
cout<<"Enter the value of a";
cin>>a;
cout<<"Enter the value of b";
cin>>b;
c=a*b;
cout<<"Multiplication of two numbers";
cout<<c;
getch();
}

OUTPUT:
Enter the value of a4
Enter the value of b5
Addition of two numbers20

No comments:

Post a Comment