fork download
  1. /* atan example */
  2. #include <cstdio> /* printf */
  3. #include <cmath> /* atan */
  4.  
  5. int main ()
  6. {
  7. double param, result;
  8. param = 1.0;
  9. result = atan (param) * 180 / M_PI;
  10. printf ("The arc tangent of %f is %f degrees\n", param, result );
  11. return 0;
  12. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
The arc tangent of 1.000000 is 45.000000 degrees