C Program To Convert Decimal into Binary, Hexadecimal and Octal

By | August 25, 2016

C Program To Convert Decimal into Binary, Hexadecimal and Octal

Learn How To Convert Decimal into Binary, Hexadecimal and Octal Values in C Programming. This is the simplest C Program For Converting Decimal Values into Binary, Octal and Hexadecimal Numbers.

The given C Program uses If – Else Block Structure to solve the following problems:

• Conversion of Decimal Number into Binary Value
• Converting Decimal Numbers into Hexadecimal Number
• Conversion of Decimal Integer into Octal Value

Decimal Number

A Decimal Number has a base 10 and includes digits the following digits: 0 1 2 3 4 5 6 7 8 9

Binary Number

A Binary Value has a base 2 and includes only two digits: 0 1

A Hexadecimal Number has a base 16 and includes the following values: 0 1 2 3 4 5 6 7 8 9 A B C D E F

Octal Number

An Octal Number has a base 8 and includes the following digits: 0 1 2 3 4 5 6 7

Output

If you have any compilation error or doubts in this C Program For Decimal Conversion into Binary, Hexadecimal and Octal Values, let us know about it in the Comment Section below.

6 thoughts on “C Program To Convert Decimal into Binary, Hexadecimal and Octal”

1. Smita Patil

I had never even imagined that Decimal to Binary, Hexadecimal and Octal conversion could br so easier. Thanks for providing the code.

2. Vir Das

This is really amazing. This is like 3 in 1 code for Number system conversion.

3. James Bond

Very helpful ! Thank you.

4. manuj sharma

please explain the execution

5. Deepak R

Can anyone please explain the program

6. marvin t tamayo

admin can you explain this code?