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.
Sur cette page du site, vous pouvez voir la vidéo en ligne Java Programming: Print ODD Numbers from 0 to 20 using a For Loop and If Statement: Tutorial durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur The Tek Show 25 mai 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,629 fois et il a aimé 23 téléspectateurs. Bon visionnage!