请问如何将循环程序加到闰年判定程序中呢
#include <stdio.h>intmain()
{
int year,leap;
if(year%4=0)
{if( year%100=0)
if (year%400=0)
leap=1;
else
leap=0;
else
leap=1;
}
else
leap=0;
if(leap=1)
print("is ",year);
else
print("is not",year);
print("a leap year\n");
return 0;
}