Listing out Leap Years Between Certain Period

The programming lesson will teach you the coding for finding and listing out the leap years between two years. Please Check This Code.

class list_leapyears
public static void main(String[] args)
int i=2008;
int n;
for (n=1988; n<=i ; n++){ int l=n%4; if (l==0){ System.out.println("Listing leap years: "+n); } } } }