Perulangan Tunggal
Kode Program : package bahasa_pemrograman_1; import java.util.Scanner; public class Perulangan { public static void main(String[] args) { Scanner input = new Scanner(System.in); int pilihmenu, pilihsub, diskon=0, total=0, totalakhir, jumlah; String member,lagi; System.out.println("================================"); System.out.println("Menu"); System.out.println("================================"); System.out.println("1.Sate :"); System.out.println(" 1).Ayam : 1.500 per tusuk"); System.out.println(" 2).Kambing : 3.000 per tusuk"); System.out.println("================================"); System.out.println("2.Pecel :"); System.out.println(" 1).Lauk ayam : 13.000 per porsi"); System.out.println(" 2).Lauk empal : 15.000 per porsi");