Hi, pls help task is not accepting my answer. Pls help me check what's wrong because it says there is something wrong with my code on the "less than 5" part.
package en.codegym.task.pro.task03.task0310;
import java.util.Scanner;
/*
The hard way...
*/
public class Solution {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int number = scanner.nextInt();
if (number > 5) {
System.out.println("The number is greater than "+number);
}
else if (number < 5) {
System.out.println("The number is less than "+number);
}
else {
System.out.println("The number is equal to "+number);
}
}
}