public class Main {
public static void main(String[] args)
{
int num = 20;
// Cmemeriksa positif,negatif atau nol
if (20 > 0) {
System.out.println("Bilangan positif");
}
else if (20 == 0) {
System.out.println("nol");
}
else {
System.out.println("Bilangan negatif");
}
// Checking for odd and even
if (num % 2 == 0) {
System.out.println(num + " genap");
}
else {
System.out.println(num + " ganjil");
}
}
}