WA(수정)

2j1ejyu Reply 5 years 31 weeks ago
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner scan = new Scanner(System.in); double M, I, F; int integer, decimal; System.out.print("변환할 미터값을 입력하세요 "); M = scan.nextDouble(); I = 39.3701 * M; F = I/12; integer = (int) F; decimal = (int) ((F - integer) * 12); System.out.printf("%d\n%d", integer, decimal); } } 수정해서 다시 올렸습니다. 숫자를 저렇게 바꿔도 WA가 뜹니다. 왜 그런가요 ㅜㅜ
onacloud Reply 5 years 31 weeks ago
아래서 답변했습니다