Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #define _USE_MATH_DEFINES
  2. #include <cmath>
  3. #include <iostream>
  4. #include <algorithm>
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. double a=1;
  10. double b=2;
  11. double c=3;
  12. double d=4;
  13. double res = min(d, b);
  14. res = max(b*c, res);
  15. res = max(a, res);
  16. cout<<res;
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement