answersLogoWhite

0


Best Answer

main()

{

int n;

printf("\n Enter any number:");

scanf("%d", &n); dec2bin(n);

}

dec2bin(int n)

{

if(n == 0)

return ; else

{

dec2bin (n/2);

printf("%d", n%10);

}

}

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a Recursive function to find decimal equivalent of binary?
Write your answer...
Submit
Still have questions?
magnify glass
imp