OneCompiler

"Why Delta Core Codes Together"

41

public class Main {
public static void main(String[] args) {
int i = 10; // You can change this value to test
if (i > 0) {
System.out.println("The number is positive");
} else if (i < 0) {
System.out.println("The number is negative");
} else {
System.out.println("The number is zero");
}
}
}