When it was flagged, I decided not to close it because it seems like a fairly common homework assignment with a twist. It also resembles very closely the same concepts behind the famous FizzBuzz Problem a.k.a Why Can't Programmers... Program?.
The twist of course that the OP presented is to not use a conditional statement which seems like another really interesting variation of the FizzBuzz question that can be used by programmers to test basic programming skills in entry level applicants.
I admit there are a few problems with the question, and I would be disgusted if the users started blatantly answering homework questions, but I hold out hope that somebody can edit the question to perhaps make it a bit more generic and useful to others.
Of course this was my take on this so feel free to downvote my answer to oblivion if you feel that I am off the mark here.