Solution: Use of Modulo Operator

Let's see the solution to the Use of the Modulo Operator challenge.

Solution task-1

Here, we use the modulo operator to find the odd numbers between 1 and 20. We then display them on the console.

Let’s have a look at the solution code below:

Access this course and 1400+ top-rated courses and projects.