#include<stdio.h>
#include<conio.h>
main()
{
int x,y,z;clrscr();
printf("Enter three number: ");
scanf("%d%d%d",&x,&y,&z);
printf("Largest number");
if(x>y)
{
if(x>z)
printf("%d",x);
else
printf("%d",z);
}
else
{
if(z>y)
printf("%d",z);
else
printf("%d",y);
}
getch();
}
#include<conio.h>
main()
{
int x,y,z;clrscr();
printf("Enter three number: ");
scanf("%d%d%d",&x,&y,&z);
printf("Largest number");
if(x>y)
{
if(x>z)
printf("%d",x);
else
printf("%d",z);
}
else
{
if(z>y)
printf("%d",z);
else
printf("%d",y);
}
getch();
}
0 comments:
Post a Comment
If you have any confusion, Please leave a comment. I will assist you. Do not include any URL in comments.