PHONE KEYPAD PROBLEM


i am getting error

@yyashu123 in the for loop in line 20, your increment statement should be k++, not i++. Also i’d like to point out that you dont need to add any extra conditions for “0”. If you print the answer when you encounter 0, then you will get wrong answer for an input like “102”. You can see the suggested changes here https://ide.codingblocks.com/s/223035

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.