2016 Java Chapter 4 (Week 04)

From: 2016-09-01 00:00:00 To: 2016-10-19 00:00:00 Now: 2024-11-21 22:33:33 Status: Public

D - 10진수를 16진수로

Time Limit: 1s Memory Limit: 128MB

Submissions: 1042 Solved: 585
Description

0부터 100사이의 정수를 입력받아 16진수로 출력하는 프로그램을 작성하세요.

Write a program that prompts the user to enter an integer between 0 and 100 and displays its corresponding hex number.

 

Input

* Line 1 : 정수 (0~100)

 

Output

* Line 1 : HEX값 (0~64범위의 hex값; a-f는 소문자로 표시)

 

Sample Input
100
Sample Output
64
Source

JAVA2015 PE4.11