Ruby Basic Exercises: Print odd numbers from 10 to 1
Write a Ruby program to print odd numbers from 10 to 1.

Ruby Code:
Output:
Odd numbers between 9 to 1: 9 7 5 3 1
Flowchart:

Ruby Code Editor:
Contribute your code and comments through Disqus.
Previous: Write a Ruby program to print even numbers from 1 to 10.
Next: Write a Ruby program to print the elements of a given array.
What is the difficulty level of this exercise?
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics