Module: (Java) Subroutines. Recursion.


Problem

10/10

Number to hexadecimal number system

Theory Click to read/hide

You may find this information useful:
English letter '\(A\)' has code 65
Entry
\(char \ c = 65;\) stores an English letter in the variable \(c\) \(A\) 
Thus, you can get the desired letter by its code

Problem

Write a recursive procedure that converts a number to hexadecimal. 
Input:
The input to the program is the number N (N<=4096) - a number in the 10 number system
Output:
Display one number on the screen - a number in hexadecimal number system

Example:
Input:
123
Output:
7B