Given a decimal number as input, we need to write a program to convert the given decimal number into equivalent binary number.
Input : 7 Output : 111 Input : 10 Output : 1010 Input: 33 Output: 100001
Please refer complete article on Program for Decimal to Binary Conversion for more details!
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.