16진수1 10진수를 2진수, 8진수, 16진수로 변환 소스 코드 public class Main { public static void main(String[] args) { // 10진수 int num = 120; String decimalToBinary = Integer.toBinaryString(num); String decimalToOctal = Integer.toOctalString(num); String decimalToHex = Integer.toHexString(num); System.out.println("10진수 -> 2진수, 8진수, 16진수로 변환"); System.out.println("10진수: " + num + ", 2진수: " + decimalToBinary); System.out.println("10진수: " + num + ",.. 2019. 4. 7. 이전 1 다음