coderz.py

Keep Coding Keep Cheering!

Convert Decimal to Binary

Given a decimal number as input, we need to write a program to convert the given decimal number into an equivalent binary number. Examples:  Algorithm for Converting Decimal to Binary: Step 1: Divide the number by 2 and store the remainder in an array (modulus operator). Step 2: Divide the number by 2 using the […]

November 17, 2022 | C++ | No comments

Advertisement