Control Statement Exercises
- Write a program which reads lines until it reads a line consisting of the word "quit" on a line by itself. Then print out all the duplicate lines seen. If none were seen, print "No duplicates seen." (solution)
- Write a program which prints all the numbers from 1 to 100, each followed by a ":" and a list of the numbers by which it is evenly divisible. (solution)
|
---|
Replies are listed 'Best First'. | |
---|---|
Control Statements #1
by vroom (His Eminence) on Nov 24, 1999 at 01:15 UTC | |
Control Statements #2
by vroom (His Eminence) on Nov 24, 1999 at 01:26 UTC |
Back to
Meditations