#include<stdio.h>
main(){
    int year;
    printf("input a number less than 300\n");
    scanf("%d",&year);
    if((year%100!=0&&year%4==0)||year%400==0){printf("YES");}
    else{printf("NO");}
    return 0;
}

Homework1-闰年

 

相关文章:

  • 2021-12-05
  • 2021-09-06
  • 2022-12-23
  • 2021-11-28
  • 2021-11-28
  • 2021-11-28
  • 2021-12-23
  • 2021-07-20
猜你喜欢
  • 2021-12-02
  • 2022-12-23
  • 2022-01-13
  • 2021-04-01
  • 2021-10-27
相关资源
相似解决方案