// SEAT NO.
:
// ASSIGNMENT
NO. : 2 - II (USING IF...ELSE)
// PROGRAM
TO FIND OUT LARGER OF 2 NUMBER
#include<iostream.h>
#include<conio.h>
int main()
{
int
no1, no2;
clrscr();
cout<<"\n
Please enter any two integer no. : ";
cin>>no1>>no2;
if(no1>no2)
{
cout<<"\n\t
"<<no1<<" is greter than "<<no2;
}
else
{
cout<<"\n\t
"<<no2<<" is gretter than "<<no1;
}
getch();
return
0;
}
No comments:
Post a Comment