온도 단위 바꾸는 프로그램
로와
2023.04.01
질문 제목 : 온도 단위 바꾸는 프로그램오류가 뜨는데 내가 초보라서 머가 오류 인지 잘 모르겠음 ㅠㅠ질문 내용 : #include stdio.h
double temperature(double f);
int main (void)
{
double c, f, x;
printf(온도 입력:);
scanf(%f, &f);
x = temperature(f);
printf(썹씨 온도는 %f 도 입니다. \n, x);
return 0;
}
double temperature(double f)
{
c=5.0/9.0*(f-32.0);
return c;
}
- 머가 오류인지 좀 가리켜 주세요 ㅠㅠ