这个程序为什么输入0不能退出while循环?
1 #include<stdio.h>2 #define MIN_PER_HOUR 60
3 int main (void)
4 {
5 int min,hour,surplus;
6 printf("convert minutes to hour and minutes!\n"
7 "enter the mumber of minutes(<=0 to quit)\n");
8 while (scanf("%d", &min) > 0)
9 {
10 hour = min / MIN_PER_HOUR;
11 surplus = min % MIN_PER_HOUR;
12 printf("%d hour %d mins\n", hour, surplus);
13 printf("Enter next values.(<=0 quit)\n");
14 }
15 printf("Thaks!\n");
16
17 return 0;
18 }
为什么不能退出while循环,请大神解释解释!!!
拜托了!!!!