import java.util.Scanner;
public class ScannerEx {
public static void main(String[] args) {
String name;
int age;
double tall;
Scanner sc = new Scanner(System.in);
System.out.print("name:"); name=sc.next();
System.out.print("age:"); age=sc.nextInt();
System.out.print("tall:"); tall=sc.nextDouble();
System.out.println(name+" "+age+" "+tall);
}
}
댓글 없음:
댓글 쓰기