Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahul255 authored Mar 16, 2019
1 parent cc5715e commit be3a8bc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions 479A.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include <iostream>

using namespace std;

int main()
{
int a,b,c,sum;
cin>>a;
cin>>b;
cin>>c;
sum= max((a + b + c), max((a * (b + c)), max((a*b + c), max(a + b * c, max(a * b * c, (a + b)*c)))));
cout<<sum;

return 0;
}

0 comments on commit be3a8bc

Please sign in to comment.