Puzzle L3

Print the integers 0, 2, 4, ... , 20 one per line

[E-3]Write a main() program that prints the integers 0, 2, 4, up to 20 one per line. The output of the program is:

0
2
4
. . .
20

For an extra challenge, try to get this program correct on the first try. Based on what students do on tests and quizzes, I'd say you have a 10% chance of getting it wrong.



Answer         Next Page         Previous Page Home