#include<stdio.h>
int main() {
int year;
printf("please input year:");
scanf("%d", &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,scanf,year,程序,4.8,printf,return From: https://blog.51cto.com/u_15804165/5724454