본문 바로가기

프로그래밍/자바

[자바] 정올 514 : 입력 - 자가진단6

728x90
반응형
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.print("height = ");
        int a = sc.nextInt();
        System.out.println("Your height is "+a+"cm.");
    }
}
728x90
반응형