求解释,判断不了闰年啊
#include "stdio.h"#include"math.h"
void main()
{
int a;
printf("请输入年份");
scanf("%d",&a);
if((a/4==0&&a/100!=0)||(a/4==0))
printf("闰年");
else
printf("非闰年");
return 0;
}
2017-09-06 17:14

2017-09-06 18:07
[此贴子已经被作者于2017-9-6 18:56编辑过]

2017-09-06 18:38
2017-09-06 19:11
2017-09-07 11:13