Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Timus 2066
- #include <iostream>
- using namespace std;
- int main()
- {
- int a, b, c, v, min=1000001;
- cin >> a >> b >> c;
- v = a + b + c; // + +
- if(v<min){min=v;}
- v = a + b - c; // + -
- if(v<min){min=v;}
- v = a + (b * c); //+ *
- if(v<min){min=v;}
- v = a - b + c; // - +
- if(v<min){min=v;}
- v = a - b - c; // - -
- if(v<min){min=v;}
- v = a - b * c; // - *
- if(v<min){min=v;}
- v = a * b + c; // * +
- if(v<min){min=v;}
- v = a * b - c; // * -
- if(v<min){min=v;}
- v = a * b * c; // * *
- if(v<min){min=v;}
- cout << min;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement