Program to find out the largest number
#include<iostream.h>
#include<conio.h>
int main()
{
int a,b;
cout<<"Enter the first number: ";
cin>>a;
cout<<"Enter the second number: ";
cin>>b;
if (a>b)
cout<<a<< " is the largest number. ";
else
cout<<b<<" is the largest number. ";
getch();
return 0;
}
No comments :
Post a Comment