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.
On this page of the site you can watch the video online Java If-Else | Hackerrank challenge 2 solution with a duration of hours minute second in good quality, which was uploaded by the user Success Learners 17 November 2021, share the link with friends and acquaintances, this video has already been watched 3,315 times on youtube and it was liked by 29 viewers. Enjoy your viewing!