标签:io ar amp sp print c ca include
输入任意一个年份,判断其是否是闰年
#include <stdio.h>
void main()
{
int year;
printf("请输入一个年份:");
scanf("%d",&year);
year%4==0&&year%100!=0||year%400==0 ? printf("该年份是闰年"):printf("该年份不是闰年");
printf("\n");
}
输入任意一个年份,判断其是否是闰年,布布扣,bubuko.com
标签:io ar amp sp print c ca include
原文地址:http://www.cnblogs.com/wenhuan/p/3911206.html