Handling Zero Case, debug the code

Unable to handle the case if input is Zero, please debug this code.

Hi @ksalokya
refer this https://ide.codingblocks.com/s/628073

issue is same, unable to handle the case if 0 is present in a number like 304 or 1024.
If input is 1024 it producing -

A@BD
A@X
ABD
JBD
JX

okay… so since in ques it is not clearly mentioned u can assume that there are no zeros in string…

alright but in case I want to handle it then? :sweat_smile:

in that case u would have to do double check… store all corresponding strings generated and then check if that case would be been possible or not… if yes then print that ans or else not…

alright thanks a lot, you can close this thread.

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.