```c #include <stdio.h> int main() { int year; printf("input a year: "); scanf("%d", &year); if ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0) { printf("it is a leap year!\n"); } else { printf("it is not a leap year!\n"); } return 0; } ``` [2024-10-22 22:06:52 | AI写代码神器 | 199点数解答]