CODE-
QUES-https://hack.codingblocks.com/app/contests/1975/399/problem
DOUBT--CONVERSION
Hey @aaliyah_beg did you understand the question? If yes then tell me your approach cause what i feel is you misunderstood the question, if it’s not the case then do let me know your approach 
Yes I have understood the ques,in this ques i m converting the source to decimal and then decimal to the target
Is your approach like this ? that if your number is 33 with base of 8, then you are first converting it to decimal number . That might be
(33) = (27)
8 10
Then converting this decimal number to desired number system like
(27) = (11011)
10 2
Exactly, thats the approach i have followed
Then bro your implementation is not right, see this i am only running your first while loop and it’s not working as per our required need.
Do you want me to write a code so that you can understand it better? or will you try it once.
I can help you with both way.
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.