Friday, February 25, 2011

Programming Exercise 1

Tue Feb 01, 2011

 Multiply Two Integers


#include<iostream.h>
main()
{

//Declare variable
int multiply,num1,num2;

//Input num1
cout<<"Enter num1 =";
cin>>num1;

//Input num2
cout<<"Enter Num 2 =";
cin>>num2;

//Formula
multiply=num1*num2;

//Output
cout<<"mutiply= "<<mutiply;
return 0;
}

by: Echelon Tech Group

No comments:

Post a Comment