no 1intan

Run Settings
LanguageJava
Language Version
Run Command
public class Main { public static void main(String[] args) { int num = 10; // Cmemeriksa positif,negatif atau nol if (10 > 0) { System.out.println("Bilangan positif"); } else if (10 == 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