The Forgetful Machine

Ask the user for two words and two numbers, and let the person at the keyboard type in some values, but don't bother storing their responses into any variables.

Again, there is no need to create any variables, except for the Scanner variable typically named keyboard.

Give me a word!
Give me a second word!
Great, now your favorite number?
And your second-favorite number...
Whew!  Wasn't that fun?

©2013 Graham Mitchell

This assignment is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States License.
Creative Commons License