Advertisement
ZinedinZidan

zidan6

Sep 30th, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.47 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int a,b,c;
  5.     while(scanf("%d%d%d",&a,&b,&c)!=EOF)
  6.     if(a>b)
  7.     {
  8.         if(a>c)
  9.         {
  10.             printf("%d is maximum\n",a);
  11.         }
  12.         else
  13.         {
  14.             printf("%d is maximum\n",c);
  15.         }
  16.     }
  17.     else
  18.     {
  19.         if(b>c)
  20.         {
  21.             printf("%d is maximum\n",b);
  22.         }
  23.         else
  24.         {
  25.             printf("%d is maximum\n",c);
  26.         }
  27.     }
  28.     return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement