Codeforces “479A – Expression” solution( Bangla ) | Cpp language

**Before watching this make sure that you’ve tried enough**

#include<iostream>

using namespace std;

int main()
{
    int a, b, c;
    cin >> a >> b >> c;
    int ans5 = a + b + c;
    int ans1 = a + (b * c);
    int ans2 = a * (b + c);
    int ans3 = a * b * c;
    int ans4 = (a + b) * c;

    int ans = max(ans4, (max(ans3, (max(ans2, max(ans5, ans1))))));
    cout << ans;
}

 

If this solution helped you, please share this with your friends.
And if you have anything to say, let me know in the comment section.
More solutions are coming so Like our Facebook page and Subscribe to our YouTube channel to stay connected.

Leave a Comment