No1 Desi

Run Settings
LanguageJava
Language Version
Run Command
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"); } } }
Editor Settings
Theme
Key bindings
Full width
Lines