Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- int main()
- {
- int t1,t2,t3;
- scanf("%d",t1);
- scanf("%d",t2);
- scanf("%d",t3);
- if(t1>t2 && t1>t3)
- printf("1");
- else
- {
- if(t1>t2 || t1>t3)
- printf("2");
- else
- printf("3");
- }
- if(t2>t3 && t2>t1)
- printf("1");
- else
- {
- if(t2>t3 || t2>t1)
- printf("2");
- else
- printf("3");
- }
- if(t3>t2 && t3>t1)
- printf("1");
- else
- {
- if(t3>t2 || t3>t1)
- printf("2");
- else
- printf("3");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement