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