Smart Keypad- I


Why is this code not passing all the test cases?

Hi @tanyaa.sood

In line 10, change out[j] == ‘\0’ to out[j] = ‘\0’. It will work then.

Hope it Helps.