1984 1988 1992 1996 2000
int leap(int year){ return (year%400==0)||((year%4==0)&&(year%100!=0));} void main(){ int i,j=0;for(i=1900;i<=2000;i++)if(leap(i)){ printf("%5d",i);j++;if(j%3==0)printf("\n");} }