Why 20 is ouput what is error?

hey @kailash_01,you have to update following in your code:
1.take input array in char not in int.
2.at start of every row check if your strength is greater than or eaual to k or not if not break loop.
3.you have to add s+=5 for if you encounter β€˜*’ at last column(j==m-1) else s+=4.
4. print when s>=k and give line break between β€œyes” and β€˜s’;

@kailash_01,if you are still facing any problem let me know else mark this doubt as resolved.Thankyou.

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.