Pages

Tuesday, 2 September 2014

program for multiplying two number

for ( int ) data type

// Code is given below



#include<iostream>
using namespace std;
main()
{
int a,b,result;
cout<<"enter the first number : ";
cin>>a;
cout<<"enter the 2nd number : ";
cin>>b;

result = a * b ;
cout<<"a * b = "<<result<<"\n";
return 0;

}

No comments:

Post a Comment

thnx for visiting my blog