fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. float a,i,count;
  5. a = 25.0F;
  6.  
  7. for(count=1;(1);count=count+0.000001)
  8. {
  9. i=count*count;
  10. if (i>=a)
  11. break;
  12. }
  13. printf("%f",count);
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0.03s 2296KB
stdin
Standard input is empty
stdout
5.000000