初学问题求助
devc吧
全部回复
仅看楼主
level 1
yearcxz01 楼主
萌新学习编程,根据参考书写程序,到这一步迟迟不出结果。已经不是第一次了。用getchar()也不行,有大佬能解决吗?[泪]
这是代码:
#define ADJUST 7.31
int main (void)
{
const double SCALE = 0.333;
double shoe,foot;
printf("Shoe size (men's) foot length\n");
shoe = 3.0;
while (shoe < 18.5);
{
foot = SCALE * shoe + ADJUST;
printf("%10.1f %15.2f inches\n",shoe,foot);
shoe = shoe + 1.0;
}
printf("If the shoe fits,wear it.\n");
return 0;
}
2021年07月09日 01点07分 1
1