Solution: Use of Modulo Operator
Let's see the solution to the Use of the Modulo Operator challenge.
We'll cover the following
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:
Get hands-on with 1400+ tech skills courses.