蓝桥杯---十进制转十六进制

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		long n = sc.nextLong();
		System.out.println(Long.toHexString(n).toUpperCase());
		sc.close();
	}

}

猜你喜欢

转载自blog.csdn.net/qq_39487875/article/details/86544673