流程图:
c语言代码:
#include <stdio.h> int main() { int year = 2000; while (year <= 2500) { if (year % 100 != 0 && year % 4 == 0 || year % 400 == 0) { printf("YES"); } else { printf("NO"); } year++; } } return 0; }