# C Program To Convert Decimal into Binary, Hexadecimal and Octal

## 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.

#### Tushar Soni

I am Tushar Soni, Co - Founder of CodingAlpha. I am a computer science student from India and passionate about Web Development and Programming. Connect with me on Facebook | LinkedIn | Google Plus

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

• August 28, 2016 at 5:37 pm