prev


for loop

102. compute leap year (27.05.2010)

/*
Program# 102
date : 10-01-2009
Print Leap year from 1000 to 2000
*/

#include <stdio.h>
main(){
int i,a;
for(i=1000;i<=2000;i++){
a=i%4;
if(a)
printf("\nNot Leap Year=%d",i);
else
printf("\nLeap Year=%d",i);
}
}



next
blog comments powered by Disqus