Skip to content

Commit 04fafc4

Browse files
committed
convert decimal to octal
1 parent 5684534 commit 04fafc4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

decimal-to-octal.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class decimaltooctal
2+
{
3+
public static void main(String args[])
4+
{
5+
6+
System.out.println(Integer.toOctalString(8));
7+
System.out.println(Integer.toOctalString(19));
8+
System.out.println(Integer.toOctalString(81));
9+
}
10+
}

0 commit comments

Comments
 (0)