*#include<stdio.h>
int main() {
for (int year = 2000; year <= 2500; year++) {
if ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0)) {
printf("%d is run year\n", year);
}
else {
printf("%d isn't run year\n", year);
}
}
return 0;
}
标签:run,闰年,int,400,year,printf,整除 From: https://blog.51cto.com/u_15804165/5724453