Q Java Program for Decimal to Binary Conversion
Given a decimal number as input, we need to write a program to convert the given decimal number into equivalent binary number.
Examples:
Input : 7 Output : 111
Input : 10 Output : 1010
Input: 33 Output: 100001