Java If-Else | HackerRank | Complete Code | All Test Case Passed |

Published: 18 February 2022
on channel: Engineering Remedies
590
3

Given an integer, N , perform the following conditional actions:

If N is odd, print Weird
If N is even and in the inclusive range of to , print Not Weird
If N is even and in the inclusive range of to , print Weird
If N is even and greater than , print Not Weird
Complete the stub code provided in your editor to print whether or not is weird.

Input Format
A single line containing a positive integer, N .
Output Format
Print Weird if the number is weird; otherwise, print Not Weird.

#HackeRank
#HackeRankcode
#java
#Shorts


On this page of the site you can watch the video online Java If-Else | HackerRank | Complete Code | All Test Case Passed | with a duration of hours minute second in good quality, which was uploaded by the user Engineering Remedies 18 February 2022, share the link with friends and acquaintances, this video has already been watched 590 times on youtube and it was liked by 3 viewers. Enjoy your viewing!