Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- main(){
- int X,Y,Z;
- printf("Enter the numbers:");
- scanf("%d %d %d",&X,&Y,&Z);
- if ((X>Y)&&(X>Z)){
- printf("%d is largest",X);}
- else if((Y>X)&&(Y>Z)){
- printf("%d is largest",Y);}
- else
- printf("%d is largest",Z);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment