关于这个代码
#include<stdio.h>int main(void)
{
int age = 20;
while (age++ <=65)
{
if ((age % 20) == 0)
printf("You are %d. Here is a raise.\n", age);
if (age = 65)
printf("You are %d. Here is your gold watch.\n", age);
}
return 0;
}
为何一直输出 You are 65. Here is your gold watch.
不应该是先满足20%20==0然后输出You are 20. Here is a raise,然后65赋给age 输出You are 65. Here is your gold watch 然后age++,age变成66,然后循环退出么??