Write a C Program to convert positive decimal number to Binary, Octal or Hexadecimal. Here’s a Simple Program to convert decimal number to Binary, Octal or Hexadecimal number in C Programming Language.
Create a program that would convert a decimal number to binary, octal or hexadecimal counterpart. Your program should ask the user for decimal with a data type of a long integer.
Decimal system : :
Below is the source code for C Program to convert positive decimal number to Binary, Octal or Hexadecimal which is successfully compiled and run on Windows System to produce desired output as shown below :
SOURCE CODE : :
OUTPUT : :
need an explanation for this answer? contact us directly to get an explanation for this answer