Test case 2 is failing

My code= https://ide.codingblocks.com/s/652761

hi @ayushkotwar2002_78a27ac2b05189a5
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 -->

@ayushkotwar2002_78a27ac2b05189a5
I hope it’s clear now??

Yes sir! Thank you for the help.

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.