1. 程式人生 > >藍橋杯 基礎練習 十進制轉十六進制

藍橋杯 基礎練習 十進制轉十六進制

out pos hex can ati static sca ner 十進制

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());
}
}


藍橋杯 基礎練習 十進制轉十六進制