C Program to convert decimal to binary

C Program to convert decimal to binary

Input: 5

Output: 000000000000101

Method 1:



Method 2:




Method 2.1:
(Print the binary in reverse)



Method 2.2: