我的程序为每个输出显示“这是闰年”。请让我知道我在哪里犯了错误??
#include<stdio.h>
#include<conio.h>
void main()
{
int a;
clrscr();
printf("\n Enter the year : ");
scanf("%d",a);
if (a%400 == 0)
printf("\n It is a leap year");
else
if (a%100 == 0)
printf("\n It is not a leap year");
else
if (a%4 == 0)
printf("\n It is a leap year");
else
printf("\n It is not a leap year");
getch();
}