C++ program to convert decimal to binary using recursive function
Answers
Answered by
0
recursion
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
Recommended: Please try your approach on {IDE} first, before moving on to the solution.
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
Recommended: Please try your approach on {IDE} first, before moving on to the solution.
Similar questions