Episode 18 - Multiple Loops
- Write a program that asks the user to type in 10 numbers, one at a time. The program will then print out each number times 2 (be careful to convert strings to numbers!).
-
.even?
or.odd?
methods on numbers.)
Write a program that asks the user to type in 10 words, one at a time. The program will then print out every other word. (Hint: you can use the - Write a program that asks the user to type in 10 numbers, one at a time. The program will then output the minimum number.