我编译了一下,也看出来了!!
#include "stdafx.h"
#include "stdio.h"
main()
{
int a,b;
printf("enter a integer:");
scanf("%d",&a);
if ((a%4==0&&a%100!=0)||(a%400==0)) b=1;
else b=0;
if(b)
printf ("%d is leap year\n",a);
else
printf ("%d is not leap year\n",a);
}
看一下这个