This web page requires JavaScript to be enabled.

JavaScript is an object-oriented computer programming language commonly used to create interactive effects within web browsers.

How to enable JavaScript?

Java – Hello work [oop]

10cth1-2 February 17, 2012 Nam Le 0

[codes=java]import java.io.*;
import java.util.*;

class thongtin{
  public static void main (String args[]) {
    
    Scanner input=new Scanner(System.in);
    
    System.out.print(“Ten cua ban: “);
    String str =input.nextLine();
    
    System.out.print(“Nam sinh: “);
    short ns=input.nextShort();
    
    System.out.print(“Tuoi: “);
    byte  tuoi =input.nextByte();
    
    System.out.print(“Diem”);
    float diem =input.nextFloat();
    
    System.out.println(“Ho ten: ” +str+ ” – Tuoi: “+tuoi+ ” – Diem: “+diem);
  }
}
[/codes]


Last modified on December 9th, 2020 at 1:00 am

Nam Le
lequocnam



0 responds

Leave a Reply

Your email address will not be published. Required fields are marked *