蓝桥杯 BASIC-1 闰年判断
程序员文章站
2022-06-08 17:03:01
...
#include<stdio.h>
int main(){
int year;
scanf("%d",&year);
if(year%4==0&&year%100!=0){
printf("yes\n");
}
else if(year%400==0){
printf("yes\n");
}
else{
printf("no\n");
}
return 0;
}
类似题目: