fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. main() {
  5. float a = 25.0;
  6. float b = 0.0;
  7.  
  8. while (fabs(b*b - a) >= 0.01) {
  9. b += 0.00001;
  10. }
  11. printf("%f\n", b);
  12. }
Success #stdin #stdout 0s 4392KB
stdin
Standard input is empty
stdout
4.999002