Code feels completely perfect but still one case is showing error

Please help me in and finding the error and modifications required in my code. I just want to know the logic wheir I am wrong and where can I make changes.

Here is my code.

hi @sinchan1509_1a917d7b6cc3cbb9
The formula we have Learned so far only works when either the source base or destination Base is decimal.

The Logic is to First convert the corresponding given source base to decimal and then convert the decimal base to Given destination base.
In short the Question is Any Base to Decimal and then Decimal to Any Base.

refer this code -->

Why my code is not working??

u don’t need to explicitly do conversions for different bases… we have to do generic and are not limited to octal, decimal, binary… hence refer my code which is generic to any source base and destination base…

ok I got it. Thank you so much.

1 Like

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.