뭐가 잘못 됬는지 모르겠네요 ㅠㅠ
이퓨리한은지
2023.04.01
#includestdlib.h
#includestdio.h
float x;
float f();
float g();
float g()
{
scanf(%f, &f());
printf(\n %f, x);
system(pause);
return 0;
}
float f()
{
return x*x*x;
}세제곱근 구하는건데 애러가 나네요 ㅠㅠ
-
솔찬
f()가 x를 인수로 받도록 해서 계산하면 좋을 것 같네요.
일단 문제점을 수정하면
float g() {} ---- int main() { }
scanf(\%f\