Advertisement
bertao

EX 2

Apr 16th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include<stdio.h>
  2. int main(void){
  3. int X , Y , Z , A;
  4. printf("X:");
  5. scanf ("%d",&X);
  6.  
  7. printf("Y:");
  8. scanf("%d",&Y);
  9.  
  10. printf("Z:");
  11. scanf ("%d",&Z);
  12.  
  13. printf("A:");
  14. scanf ("%d",&A);
  15.  
  16. if((Y>X)&&(Z>X)&&(A>X)){
  17. printf("%d",X);
  18. }
  19. if ((Y>A)&&(Z>A)&&(X>A)){
  20. printf("%d",A);
  21. }
  22. if ((Y>Z)&&(A>Z)&&(X>Z)){
  23. printf("%d",Z);
  24. }
  25. if ((A>Y)&&(Z>Y)&&(X>Y)){
  26. printf("%d",Y);
  27. }
  28. return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement