Koding Program NetBeans Penggunaan Fungsi If Bersarang dengan Tipe Data Integer dan String Pada Penginputan dan Output
Dosen Pengampu : Fince Tinus Waruwu, S.Kom, M.Kom package rosliana; import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO code application logic here Scanner kc=new Scanner (System.in); System.out.print("Kode Customer = "); int q =kc.nextInt(); if (q==15110046) { System.out.println("Nama = Rosliana Siregar"); System.out.println("Alamat = Tanjung Morawa"); System.out.println("No HP = 081375097908"); } else if (q == 15110707){ System.out.println("Nama = Zovi Darma Putra"); System.out.println("Alamat = Jalan Limau Manis"); System.out.println("No HP = 081362869118"); } else if (q == 15112457){ System.out.println("Nama = Nuriani"); System.out.println("Alamat = Lubuk Paka