[Power Java Compact] 2장 연습문제
·
Major/Java
Chapter 02 자바 프로그래밍 기초 Mini Project public class FtoC { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.print("화씨 온도를 입력하시오: "); double f = sc.nextDouble(); double c = (f-32)*5/9; //5/9를 먼저 곱하면 0이된다. System.out.println("섭씨온도는 "+c); } } Exercise 1. byte short int long float double char boolean 2. String 3. int 4. ⓒ 5. 변수 : k, m, f 상수 : size 6. 1) 11, 0 2) ..