Guest User

Untitled

a guest
Jan 28th, 2020
85
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data