流程图:
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; }
流程图:
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; }
转载于:https://www.cnblogs.com/P201821440043/p/10504494.html