Skip to content

Commit 7e5887f

Browse files
authored
src
1 parent 0c05d04 commit 7e5887f

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/codeup100/c1035.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package codeup;
2+
3+
import java.util.Scanner;
4+
5+
public class c1034 {
6+
public static void main(String[] args) {
7+
Scanner sc = new Scanner(System.in);
8+
System.out.println("8진수로 변환할 16진수 입력: ");
9+
int num = sc.nextInt(16); // 8진수 정수 입력
10+
sc.close();
11+
12+
System.out.printf("%o", num);
13+
}
14+
}

0 commit comments

Comments
 (0)