Created
October 4, 2017 12:47
-
-
Save sugiartocokrowibowo/cdc790e5bf30ff40f21b9db4f8c41507 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Scanner; | |
| public class A { | |
| public static void main(String[] args) { | |
| //INSTAN SCANNER untuk membaca Input Keyboard | |
| Scanner s = new Scanner(System.in); | |
| //DEKLARASI VARIABEL | |
| String nama; | |
| String nim; | |
| String alamat; | |
| int umur; | |
| //INPUT | |
| System.out.println("INPUT"); | |
| System.out.print("Nama : "); | |
| nama = s.next(); | |
| System.out.print("NIM : "); | |
| nim = s.next(); | |
| System.out.print("Alamat : "); | |
| alamat = s.next(); | |
| System.out.print("Umur(tahun): "); | |
| umur = s.nextInt(); | |
| //OUTPUT | |
| System.out.println("\nOUTPUT"); | |
| System.out.println("Nama : "+nama); | |
| System.out.println("NIM : "+nim); | |
| System.out.println("Alamat : "+alamat); | |
| System.out.println("Umur(tahun): "+umur); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment