No idea how it will work

How to approach with this question as I cannot understand the input format and what’s required

hi @Riya-Verma-1207263756078812,
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

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.

In the question, If the source base is 16 then it will also contain characters, How to deal with that situation?.. Hexadecimal do contain ABCD and all.

@Riya-Verma-1207263756078812 refer https://www.geeksforgeeks.org/convert-a-number-from-base-a-to-base-b/

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.