Advertisement
8275865

Untitled

Apr 8th, 2020
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.64 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3.  
  4. int main()
  5. {
  6.     int t1,t2,t3;
  7.     scanf("%d",t1);
  8.     scanf("%d",t2);
  9.     scanf("%d",t3);
  10.  
  11.     if(t1>t2 && t1>t3)
  12.         printf("1");
  13.     else
  14.     {
  15.         if(t1>t2 || t1>t3)
  16.             printf("2");
  17.         else
  18.             printf("3");
  19.     }
  20.  
  21.     if(t2>t3 && t2>t1)
  22.         printf("1");
  23.     else
  24.     {
  25.         if(t2>t3 || t2>t1)
  26.             printf("2");
  27.         else
  28.             printf("3");
  29.     }
  30.  
  31.     if(t3>t2 && t3>t1)
  32.         printf("1");
  33.     else
  34.     {
  35.         if(t3>t2 || t3>t1)
  36.             printf("2");
  37.         else
  38.             printf("3");
  39.     }
  40.     return 0;
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement