← Return

Java If-ElseEasy

In this challenge, we test your knowledge of using if-else conditional statements to automate decision-making processes. An if-else statement has the following logical flow:

Source: Wikipedia

Task

Given an integer, \(n\), perform the following conditional actions:

Complete the stub code provided in your editor to print whether or not \(n\) is weird.