fork(1) download
  1. #include <stdio.h>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7. double x, y;
  8. scanf("%lf", &x); // input
  9. y = 2.0 * M_PI * sin(x);// processing
  10. printf ("%lf", y); // output
  11. return 0;
  12. }
Success #stdin #stdout 0s 3300KB
stdin
4 3.78
stdout
-4.755130