人大附中12级11班吧 关注:49贴子:765
  • 1回复贴,共1

yamete yamete

只看楼主收藏回复

#include<stdio.h>
main()
{
int a;//kang ge zhuan yong qing qu diao
printf("请输入年份:");
scanf("%d",&a);
if(a%4==0)
if(a%100==0)
if(a%400==0)
printf("%d is leap year",a);
else
printf("%d isn't leap year",a);
else
printf("%d is leap year",a);
else
printf("%d isn't leap year",a);
system("pause");
}


1楼2013-04-19 15:00回复