Sunday, December 16, 2012

FIND THE BIG NUMBER OF TWO NUMBERS IN C++


#include<iostream.h>
void main()
{
int num1, num2;
cout << "PLEASE ENTER THE FIRST NUMBER : ";
cin >> num1;
cout << "PLEASE ENTER THE SECOND NUMBER : ";
cin >> num2;
if (num1>num2)
{
cout << "1st NUMBER IS GREATER THAN 2nd NUMBER.";
}
else
{
cout << "2nd NUMBER IS GREATER THAN 1st NUMBER.";
}
}

No comments: