Friday, January 02, 2009

Program to find biggest of 3 numbers

Buzz It
/*Program to find biggest of 3 numbers*/


#include
#include
void main()
{
int a,b,c;
clrscr();
printf("Enter three number \n");
scanf("%d%d%d",&a,&b,&c);
if(a>b)
{
if(a>c)
printf("the large is =%d",a);
else
printf("The large is =%d",c);
}
else
{
if(b>c)
printf("large is=%d",b);
else
printf("large is =%d",c);
}
getch();
}

0 comments:

Post a Comment