void main()
{
int a,b,c,d,e;
clrscr();
printf("\nEnter the First Number:");
scanf("%d",&a);
printf("\nEnter the second Number:");
scanf("%d",&b);
printf("\nEnter the third Number:");
scanf("%d",&c);
printf("\nEnter the Fourth Number:");
scanf("%d",&d);
printf("\nEnter the Fiveth Number:");
scanf("%d",&e);
if(a>b)
{
if(a>c)
{
if(a>d)
{
if(a>e)
{
printf("\n\t%d is the Largest No",a);
}
else
{
printf("\n\t%d is the Largest No",e);
}
}
}
}
else
{
if(b>c)
{
if(b>d)
{
if(b>e)
{
printf("\n\t%d is the Largest No",b);
}
else
{
printf("\n\t%d is the Largest No",e);
}
}
}
else
{
if(c>d)
{
if(c>e)
{
printf("\n\t%d is Greatest ",c);
}
else
{
printf("\n\t%d is Greatest ",e);
}
}
else
{
if(d>e)
{
printf("\n\t%d is the Largest No",d);
}
else
{
printf("\n\t%d is Greatest No ",e);
}
}
}
}
getch();
}
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment