鱼C论坛

 找回密码
 立即注册
查看: 3299|回复: 6

数组,十进制转换成其他进制

[复制链接]
发表于 2016-5-27 16:43:17 | 显示全部楼层
  1. public class Main
  2. {
  3. public static void mian(String[]args){
  4. Scanner sc= new Scanner(System.in);
  5. int a,b;
  6. while(sc.hasNext()){
  7. a=sc.nextInt();
  8. b=sc.nextInt();
  9. System.out.println(Integer.toString(a,b););
  10. }
  11. }
  12. }
复制代码
小甲鱼最新课程 -> https://ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2026-4-1 16:39

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表