//pgm to find the greatest of two numbers
#include<iostream.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
cout<<"enter the first number";
cin>>a;
cout<<"enter the second number";
cin>>b;
if(a>b)
cout<<a<<"is greater";
else
cout<<b<<"is greater";
getch();
}
Please Click on ADS!!
Please Click on the above ads given by GOOGLE , so that I can maintain my blog!!
Tuesday, August 31, 2010
Subscribe to:
Post Comments (Atom)

0 comments:
Post a Comment