import java.util.Scanner;
public class Biodata {
public static void main(String[] args) {
Scanner scanSatu = new Scanner(System.in);
System.out.print("Nama: ");
String nama = scanSatu.nextLine();
Scanner scanDua = new Scanner(System.in);
System.out.print("NPM: ");
String npm = scanDua.nextLine();
System.out.println("Data yang anda masukkan");
System.out.println("Nama: "+nama);
System.out.println("NPM: "+npm);
}
}
public class Biodata {
public static void main(String[] args) {
Scanner scanSatu = new Scanner(System.in);
System.out.print("Nama: ");
String nama = scanSatu.nextLine();
Scanner scanDua = new Scanner(System.in);
System.out.print("NPM: ");
String npm = scanDua.nextLine();
System.out.println("Data yang anda masukkan");
System.out.println("Nama: "+nama);
System.out.println("NPM: "+npm);
}
}
Jika masih bingung bisa lihat video tutorial dibawah ini ya 😁😁
No comments:
Post a Comment