Task
Given an integer, n, perform the following conditional actions:
If is odd, print Weird
If is even and in the inclusive range of 2 to 5 , print Not Weird
If is even and in the inclusive range of 6 to 20, print Weird
If is even and greater than 20, print Not Weird
Complete the stub code provided in your editor to print whether or not is weird.
Sur cette page du site, vous pouvez voir la vidéo en ligne Java If-Else | Hackerrank challenge 2 solution durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Success Learners 17 novembre 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 3,315 fois et il a aimé 29 téléspectateurs. Bon visionnage!