进制转换
x需要被转换的值
n转换的进制数
Scanner sc=new Scanner(System.in); while(sc.hasNext()) { int n=sc.nextInt(); int x=sc.nextInt(); System.out.println(Integer.toString(n,x).toUpperCase()); }
x需要被转换的值
n转换的进制数
Scanner sc=new Scanner(System.in); while(sc.hasNext()) { int n=sc.nextInt(); int x=sc.nextInt(); System.out.println(Integer.toString(n,x).toUpperCase()); }