# How to convert to binary number in c

Example Input Input decimal number: Algorithm Decimal to Binary conversion begin: Enter any decimal value: Recommended posts Loop programming exercises and solutions in C. C program to convert Decimal to Octal number system.

C program to convert Decimal to Hexadecimal number system. C program to convert Binary to Decimal number system. C program to convert Octal to Binary number system. C program to convert Hexadecimal to Binary number system. Write your doubts or suggestion. I will try my best to help. Logic to convert decimal to binary number system in C programming. Basic C programming , While loop , String.

Decimal number system is a base 10 number system. Decimal number system uses only 10 symbols to represent all number i. Binary number system is a base 2 number system.

Binary number system uses only 2 symbols to represent all numbers i. The above program converts the decimal to binary number only up to 18 binary bits. Use the below program to convert from decimal to binary number for a higher range. Learn more - Program to convert decimal to binary using bitwise operator. Example Input Input decimal number: Algorithm Decimal to Binary conversion begin: