请教各位朋友下面的代码哪里错了,谢谢!
#include<stdio.h>#define adjust 7.64
#define scale 0.325
int main(void)
{
double shoe,foot;
printf("Please enter your shoe size:\n");
scanf("%f",&shoe);
foot=scale*shoe+adjust;
printf("Shoe size (men's) foot length\n");
printf("%10.1f %15.2f inches\n",shoe,foot);
return 0;
}
比如说我输入9.0,可以运行结果不对啊,返回是无意义的数。找了半天也没找出错误,请各位指教指教,谢谢!