急,小白出现死循环问题了!
#include<stdio.h>#define H 60
int main()
{
int millions, hours, left;
printf("Pls enter millions which u think:\n");
scanf("%d", &millions);
while (millions > 0)
{
hours = millions / H;
left = millions%H;
printf("u have %d hours and %d left millions!\n", hours, left);
printf("Go on input ur millions:\n");
scanf("&d", &millions);
}
printf("BYE!");
getchar();
return 0;
}
调试程序输入数字后会一直循环,只能关闭程序,请问这是哪错了呀?