Puzzle L6

Print the ODD integers from 1 to 99, one per line

[E-3]Write a main() program that prints the odd integers 1 to 99, one per line. The output of the program is:

  1
  3
. . .
 97
 99

There are several ways to do this. Think a while about the choices, and then pick the best one.



Previous Page        Answer         Next Page         Home