Example challenge

You are give some positive integers as input. Each number should be treated as a year (AD). Write a program which will display a line containing 1 for each leap-year, and 0 for any other year.

Separate the output numbers with new line


Sample input:

1896
1990
2000
2004
2100
2400

Sample output:

1
0
1
1
0
1

Sample solutions


function foo(items) { var x = "All this is syntax highlighted"; return x; }