sivan_iut

Untitled

Feb 12th, 2020
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.59 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int a,b,c;
  5.     int q,w,e,r,t,y,u,i;
  6.     int max;
  7.     scanf("%d%d%d",&a,&b,&c);
  8.     q=a+b+c;
  9.     w=a*b*c;
  10.     e=a+b*c;
  11.     r=a*b+c;
  12.     t=a*c+b;
  13.     y=a*(b+c);
  14.     u=b*(a+c);
  15.     i=c*(a+b);
  16.     max=q;
  17.     if(w>max)
  18.     {
  19.         max=w;
  20.     }
  21.     if(e>max)
  22.     {
  23.         max=e;
  24.     }
  25.     if(r>max)
  26.     {
  27.         max=r;
  28.     }
  29.     if(t>max)
  30.     {
  31.         max=t;
  32.     }
  33.     if(y>max)
  34.     {
  35.         max=y;
  36.     }
  37.     if(u>max)
  38.     {
  39.         max=u;
  40.     }
  41.     if(i>max)
  42.     {
  43.         max=i;
  44.     }
  45.    printf("%d\n",max);
  46.  
  47. return 0;
  48. }
Add Comment
Please, Sign In to add comment