Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define _USE_MATH_DEFINES
- #include <cmath>
- #include <iostream>
- #include <algorithm>
- using namespace std;
- int main()
- {
- double a=1;
- double b=2;
- double c=3;
- double d=4;
- double res = min(d, b);
- res = max(b*c, res);
- res = max(a, res);
- cout<<res;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement