Skip to content

Commit cc4c399

Browse files
authored
src
1 parent 5ab2c52 commit cc4c399

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

src/codeup100/c1031.java

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

0 commit comments

Comments
 (0)