求几个简单c语言程序设计
求几个简单c语言程序设计
日期:2020-04-16 15:27:14 人气:1
1
判断闰年
void
main()
{
int
year;
printf("please
input
a
year:
");
scanf("%d",&year);
if((year%4==0&&year%100!=0)||(year%400==0))
printf("The
year:
%d
is
RunNian!\n",year);
else
printf("The
year:
%