#include <stdio.h>
int main() {
	printf("please input a number,we can judge it\n");
	int year;
	int re = scanf("%d", &year);
	if (year % 4 == 0 && year % 100 != 0 || year % 100 == 0 && year % 400 == 0) {
		printf("%d is a leap year", year);
	}
	else {
		printf("%d is not a leap year", year);
	}
	return 0;
}


ctrl+F5 输入需要判断的年份 此处使用2001

alt