收起
while()里面这么改:
while (n <= 2099) { if ((n % 4 == 0 && n % 100 != 0) || (n % 400 == 0)) printf("%d是闰年\n", n); n++; }
报告相同问题?