PR1/TestProgs/Minus.java

9 lines
96 B
Java

int num = -5;
if (!(num > 0)) {
if (!(num == 0)) {
System.out.println("Negative number");
}
}