蓝桥杯 基础练习 十进制转十六进制

import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
System.out.println(Integer.toHexString(n).toUpperCase());
}
}


posted @ 2018-02-22 10:45  李华东  阅读(155)  评论(0编辑  收藏  举报