DAYS
HOUR
MINS
SEC
Error
Given a decimal number N, compute its binary equivalent.
Example 1:
Input: N = 7
Output: 111
Example 2:
Input: N = 33
Output: 100001
Your Task:
You don't need to read input or print anything. Complete the function toBinary() which takes the decimal number N as the input parameter and prints its binary equivalent.
Note: Print the output in a single line, the next line character is printed by the Driver Code.
We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?
Yes