본문 바로가기

Projects/자바 100제

자바 100제 9번 scanner nextdouble

반응형
package java_algorithm;

import java.util.Scanner;

public class ex100_9 {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner scan = new Scanner(System.in); 
		
		double i = scan.nextDouble();
		
		System.out.println(i);
	}

}
반응형