Using a For loop and an if statement, I print odd numbers from 0 to 20. A condition controls the output. Modulus is used for this operation. Modulus is similar to division, the only difference is that it outputs the remainder in the division operation. If the remainder is 1, then the number is odd and is printed.
On this page of the site you can watch the video online Java Programming: Print ODD Numbers from 0 to 20 using a For Loop and If Statement: Tutorial with a duration of hours minute second in good quality, which was uploaded by the user The Tek Show 25 May 2020, share the link with friends and acquaintances, this video has already been watched 1,629 times on youtube and it was liked by 23 viewers. Enjoy your viewing!