#includevoid main(){ int year; printf("请输入年份\n"); scanf("%d\n",&year); if((year%4==0&&year%100!=0)||year%400!=0) printf("是闰年%d\n",year) else printf("不是%d\n",year);}
本文共 256 字,大约阅读时间需要 1 分钟。
#includevoid main(){ int year; printf("请输入年份\n"); scanf("%d\n",&year); if((year%4==0&&year%100!=0)||year%400!=0) printf("是闰年%d\n",year) else printf("不是%d\n",year);}
转载于:https://www.cnblogs.com/switch-and-for/p/3390141.html