LanQiaoTestCodes/九进制转十进制.java

18 lines
352 B
Java
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package LanQiaoOJ;
import java.math.BigInteger;
/*
* 问题描述
本题为填空题,只需要算出结果后,在代码中使用输出语句将
所填结果输出即可。
九进制正整数(2022)9转换成十进制等于多少*/
public class 九进制转十进制 {
public static void main(String[] args) {
String n=new BigInteger("2022",9).toString(10);
System.out.print(n);
}
}