fork(1) download
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. double eval(int a, int b){
  5. return std::sqrt(a) + std::sqrt(b);
  6. }
  7.  
  8. int main(){
  9. double first = eval(545, 331);
  10. double second = eval(545, 331);
  11.  
  12. if(first < second)
  13. std::cout << "first < second" << std::endl;
  14. if(first == second)
  15. std::cout << "first == second" << std::endl;
  16. if(first > second)
  17. std::cout << "first > second" << std::endl;
  18. }
  19.  
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
first <  second
first == second