Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int a,b,c;
- int q,w,e,r,t,y,u,i;
- int max;
- scanf("%d%d%d",&a,&b,&c);
- q=a+b+c;
- w=a*b*c;
- e=a+b*c;
- r=a*b+c;
- t=a*c+b;
- y=a*(b+c);
- u=b*(a+c);
- i=c*(a+b);
- max=q;
- if(w>max)
- {
- max=w;
- }
- if(e>max)
- {
- max=e;
- }
- if(r>max)
- {
- max=r;
- }
- if(t>max)
- {
- max=t;
- }
- if(y>max)
- {
- max=y;
- }
- if(u>max)
- {
- max=u;
- }
- if(i>max)
- {
- max=i;
- }
- printf("%d\n",max);
- return 0;
- }
Add Comment
Please, Sign In to add comment