fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3. int main() {
  4. double r;
  5. double s;
  6. r = 2.0;
  7. s = sqrt(r);
  8. printf("%f\n", s);
  9. r = 3.141592653589793238462;
  10. s = sqrt(r);
  11. printf("%f\n", s);
  12. return 0;
  13. }
  14. /* end */
  15.  
  16.  
Success #stdin #stdout 0.01s 1676KB
stdin
Standard input is empty
stdout
1.414214
1.772454