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