Batara
infounknown
java
7 months ago
522 B
6
Indexable
Never
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner userInput = new Scanner(System.in); System.out.printf("Masukkan jumlah uang (1.000 - 20.000): "); int uang = userInput.nextInt(); if(uang <= 5000){ System.out.println("Anda Pelit!"); } else if(uang <= 10000){ System.out.println("Anda Standar!"); } else{ System.out.println("Anda Sultan!"); } } }
Leave a Comment