017-001-003
Conditionals: Positive or Negative Check
Hard
Problem Description
Multiple Condition Checks
**In this problem**, you will create a program that evaluates three or more conditions in sequence using if-else if-else against input values, and displays the corresponding result to standard output.
Use if-else if-else to check three or more conditions in sequence.
Test Cases
※ Output examples follow programming industry standards
Normal case
Input:
5
Expected Output:
Positive
Normal case
Input:
-3
Expected Output:
Negative
Your Solution
Current Mode:● My Code
99
1
2
3
4
5
6
7
8
9
10
›
⌄
⌄
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// Write your code here
sc.close();
}
}
0 B / 5 MB
You have 10 free executions remaining
