求闰年怎么得不出结果啊,和书上一样呢!!
#include "stdio.h"void main()
{
int year;
printf("please enter a year:");
scanf("%d",&year);
if(year%4==0&&year%100!=0||year%400==0)
{
printf("%d is a leap year!\n");
}
}
// To test for a leap year!
小K还在不,麻烦帮我看看,谢谢各位了!
