Java Program to display the odd numbers.

Output: