We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ab2c52 commit cc4c399Copy full SHA for cc4c399
1 file changed
src/codeup100/c1031.java
@@ -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