View Code of Problem 74

#include<stdio。h>
int main(){
float x;
  scanf("%f",&x);
  float b=1.0,a;
  while(fabs(b-a)>=1.0e-5){
     a=b;
    b=(a+x/a)/2.0;
  }
  printf("%.3f",b);
  return 0;
}

/*
Main.c:1:20: fatal error: stdio。h: No such file or directory
 #include<stdio。h>
                    ^
compilation terminated.
*/

Double click to view unformatted code.


Back to problem 74