#include<iostream.h>
#include<conio.h>
void main()
{
int a,b,c,big;
clrscr();
cout<<"Enter three numbers ";
cin>>a>>b>>c;
if(a>b)
{
if(a>c)
big=a;
else
big=c;
}
else
{
if(b>c)
big=b;
else
big=c;
}
cout<<"Biggest number is "<<big;
getch();
}
#include<conio.h>
void main()
{
int a,b,c,big;
clrscr();
cout<<"Enter three numbers ";
cin>>a>>b>>c;
if(a>b)
{
if(a>c)
big=a;
else
big=c;
}
else
{
if(b>c)
big=b;
else
big=c;
}
cout<<"Biggest number is "<<big;
getch();
}
No comments:
Post a Comment