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