Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int x,y,z;
- printf("Enter the largest number:\n");
- scanf("%d%d%d",&x,&y,&z);
- if(x>y && x>z)
- printf("The largest number is %d",x);
- else if(y>z && y>z)
- printf("The largest number is %d",y);
- else
- printf("The largest number is %d",z);
- }
Add Comment
Please, Sign In to add comment