Regarding a program

I was trying to make a program to convert decimal into binary in which what I did is I just take an array in which I store the value of remainder on dividing by 2 then divide by 2 and go on until number becomes 0. But program is not giving any output whether right or wrong . Please help me out.https://ide.codingblocks.com/s/438606

Check now ->


logic is correct, it was just an issue with the for loop initialisation . have fixed it.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.