-->
当前位置:首页 > 题库

PROGRAMMING:Decimal to hexadecimal

Luz5年前 (2021-05-10)题库462
Write a program to prompt the user to enter an integer between 0 and 15 to display its corresponding hexadecimal number.
###Input format:
Enter an integer between 0 and 15.
###Output format:
If the input integer is in the range of 0 ~ 15, the corresponding hexadecimal number will be output. Otherwise, output "invalid input".
###Input example:
```in
eleven
```
###Output example:
```out
B
```







answer:If there is no answer, please comment