Getting junk value

Hi @debojyoti.koley.dk
ur code is working fine and passing all test cases…
ur input cant be characters… it is a number in form of a string…

sorry but I did not get you @Vaibhav277 . Am taking input as string na ?

yes yes… but it should contain only numbers (0-9)… not characters…rest ur code is correct… try submitting ur code… it will pass all test cases…

Hi @debojyoti.koley.dk
i hope ur doubt is cleared now… ur code is perfectly fine… try submitting it… it will pass all test cases… if u still have any doubt then do let me know…

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.

@Vaibhav277 ya ya I was making a silly mistake while taking input at vs code , got it now. Thank you