Create a program that would convert a decimal number to either binary, octal or hexadecimal counterpart. Your program should ask the user for decimal with a data type of a long integer (4 bytes or 32bits in length or having a range of +2147483647 to -2147483648, or 4294967296 if unsigned). Then, it would give the user choices on what number format s/he would convert the decimal number. Example output:
Enter a positive integer:
inary
[O]ctal
[H]exadecimal
Output is:
You should convert positive numbers only.