Plzz help it is not satifying 2 test cases and why>
Your code fails for
IAmACompetitiveProgrammeR
i.e., when sentence ends with capital letter.
https://ide.codingblocks.com/s/313307 this satisfies when sentence end s with capital letter,but still not accepting
your code prints
I
Am
A
Competitive
ProgrammeR
But it should print
I
Am
A
Competitive
Programme
R
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.