Select Menu

Search This Blog

Populer Posts Hari ini

Popular Posts

Powered by Blogger.

Lorem 1

adsense

" });

Circle Gallery

" });

News

" });
» » » source code inputan di java dengan Scanner



package input;

import java.util.Scanner;
public class Input {
    public static void main(String args[]){
        Scanner input = new Scanner( System.in );
        System.out.print( "Nama: " );
        String nama = input.next();
        System.out.print( "Umur: " );
        int umur = input.nextInt();
        System.out.println("Hello "+nama);
        System.out.println("Umur kamu : "+umur);
    }
}

About andi

«
Next
Newer Post
»
Previous
Older Post

No comments

Leave a Reply