C languageC SolutionChapter 6Programming

Q11 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

Program: 132

A positive integer is entered through the keyboard, write a function in c language to find the binary equivalent of this number:

(1) Without using recursion
(2) Using recursion

How to use recursion to get the binary digit using decimal number.

Output:

Enter Number: 10
Decimal To Binary Using Recursion: 1010
Decimal To Binary Without Using Recursion: 1010

Lokesh Kumar

Being EASTER SCIENCE's founder, Lokesh Kumar wants to share his knowledge and ideas. His motive is "We assist you to choose the best", He believes in different thinking.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.