K
K
krka922019-10-17 10:46:45
Algorithms
krka92, 2019-10-17 10:46:45

How to convert a number to hexadecimal representation?

Hi all. We need some algorithm that will translate the number A into the string S. In the string, the number must be represented in 16-decimal SS.
Thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Sokolov, 2019-10-17
@krka92

Pseudocode:

if (0 <= A  &&  A < 10) return (string) A;
else // тут уже сами допишите

In general , here .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question