帮忙觅错

帮忙找错帮忙找错#include stdio.h#include math.hint main(){float xx log 90printf(%f\n, x)

帮忙找错
帮忙找错
#include <stdio.h>
#include <math.h>

int main()
{
        float x;
        x = log 90;
        printf("%f\n", x);
        return 0;
}

[解决办法]


#include <stdio.h>
#include <math.h>

int main()
{
  double x;
  x = log(90);
  printf("%lf\n", x);
  return 0;
}

[解决办法]
x = log 90;  改成 x = logl(90);
[解决办法]
float x;
x = log 90;
上面两句改为:
double x;
x = log(90)