Program Data Mahasiswa
public static void main(String[] args) {
// TODO code application logic here
String nama;
String jk ;
String kampus ;
String kelas;
String jurusan;
String npm;
Scanner inpt= new Scanner (System.in);
System.out.print( " Masukan Nama : " );
nama = inpt.nextLine();
System.out.print( " Masukan Jenis Kelamin : " );
jk = inpt.nextLine();
System.out.print (" Masukan Kampus Ubhara : " );
kampus = inpt.nextLine();
System.out.print( " Masukan Kelas : " );
kelas = inpt.nextLine();
System.out.print( " Masukan Jurusan : " );
jurusan = inpt.nextLine();
System.out.print( " Masukan NPM : " );
npm = inpt.nextLine();
System.out.println("\n");
System.out.println(" Data Mahasiswa Ubhara ");
System.out.println("Nama Lengkap : " + nama);
System.out.println ("Kampus : " + kampus);
System.out.println("Jenis Kelamin : " + jk);
System.out.println("Kelas : " + kelas);
System.out.println("Jurusan : " + jurusan);
System.out.println("Npm : " + npm);
}
}
hasilnya :
Tidak ada komentar:
Posting Komentar