fork download
  1. #include <iostream>
  2. #include <cmath>
  3. #include <iomanip>
  4.  
  5. using namespace std;
  6.  
  7. const double PI = 3.141592653589793238463;
  8.  
  9. int main() {
  10. double cos_pi_2 = cos(PI/2);
  11.  
  12. cout << ((cos_pi_2 < 0.0001 && cos_pi_2 > -0.0001) ? 0 : cos_pi_2) << endl;
  13. }
Success #stdin #stdout 0s 3096KB
stdin
Standard input is empty
stdout
0