ed

Run Settings
LanguageJava
Language Version
Run Command
import java.util.Scanner; public class Main { public static void main (String[] args) { Scanner waktu = new Scanner(System.in); System.out.println("masukkan waktu: " ); int jam = waktu.nextInt() ; if(jam <= 5-11) { System.out.println("waktu pagi"); } else if (jam <= 12-17 ) { System.out.println("waktu siang"); } else if (jam <= 18-20) { System.out.println("waktu sore"); } else if (jam <= 21-4) { System.out.println("waktu malam"); } else { System.out.println("kategori waktu"); } } }
Editor Settings
Theme
Key bindings
Full width
Lines