To convert any sb to db should we write different piece of code for each conversion?

for reference
first u r given base system of the original no in eg33 is written in base 8 system
u need to convert that to base 2 system
33 in base 8 means 27 in base 10
and 27 in base 2 is 11011 thats what is given

to do this question read about how different base system works and how to convert them

check this https://ide.codingblocks.com/s/657527
@divyanshinegi2003_987b3f0f92dd8c0c

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.