alright so i'm making a program now that takes a decimal number from the user and outputs the number out again but counting in binary, octal, and hexadecimal. I can get binary and octal easily but hexadecimal is hard i don't know how to do it.

any help?