C Program To Convert Decimal To Binary Number using Recursion
Вставка
- Опубліковано 9 лют 2025
- technotip.com/...
A positive integer is entered through the keyboard, write a function to find the Binary equivalent of this number:
(1) Without using recursion.
(2) Using recursion.
Analyze The Problem Statement
We need to convert the user input Decimal number to its equivalent Binary number using iterative logic as well as recursive logic.
In this video tutorial, we'll write 2 functions. One for iterative logic and another for recursive logic.
Expected Input/Output
Enter a Decimal number
14
Iterative Logic
Binary Equivalent of 14 is 1110
Recursive Logic
Binary Equivalent of 14 is 11110
Note: Binary number system can be derived by base 2 to the power of whole numbers.
C Programming Interview / Viva Q&A List
technotip.com/...
C Programming: Beginner To Advance To Expert
technotip.com/...
well explained, thank you dude :)
Amazing !!!!!!!!!!!!
thank you so much
If the number are fractional like 49.23 then