fork download
  1. #include <math.h>
  2.  
  3. int main(void){
  4. double a = 2;
  5. double b;
  6.  
  7. b = sqrt(a);
  8. printf("b = %lf", b);
  9.  
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0.01s 5292KB
stdin
2
stdout
b = 1.414214