C Program to Convert Decimal to Binary Number

In this tutorial, we will explain a simple program to convert the decimal number into binary number. We have not used any number validation in this program as it is designed for the beginners for learning purpose.

You can modify this program to validate the number entered by the user during the program execution, then user can only enter the decimal number as input.

Decimal to Binary number conversion using c Programming language

Copy below c program and execute it with c complier to see the output of the program and also start converting the number system from decimal to binary number.

Program Input/Output:

#First try
Please enter the decimal number: 80
Decimal number : 1010000

Recommended Posts:


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

Article Tags: , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Solved Programs