java

Java Program to print Odd Numbers!

Hi Readers, In this post, we are going to write a core Java Program to print Odd numbers within a given limit.

First of all, you should know how to find an Odd number and it is pretty simple, divide any number by 2 if the remainder is not zero then it’s an Odd number.

So let’s see the complete Java Program here:

Read the inline comments to understand the logic.

The output of the above program:

ENJOY LEARNING!

Related Posts

Leave a Reply