0

Decimal to binary Make this c programming dynamic its tru for value 12

If you enter 12 it work properly because condition in for Loop stop at after 4 times division. How i make it dynamic which work for all number. Which changes perform in for loop https://code.sololearn.com/chuZsjTbsDaQ/?ref=app

4th May 2022, 5:41 AM
PARMAR AAYUSH
PARMAR AAYUSH - avatar
1 Answer
+ 1
Until Decimal > 0 repeat the loop.. update decimal by Decimal = Decimal/2; And use a counter variable for number of values for Reminder [] elements..
4th May 2022, 12:33 PM
Jayakrishna 🇼🇳