GenSpark interview question

Write a code so that it prints all the even numbers in a given range