I can't put spaces in-between the words and prevent it from printing three times. https://code.sololearn.com/cY3Q86IPrYZd/?ref=app
6/10/2020 9:12:18 PM
Chinyere [Inactive]4 Answers
New AnswerMaybe just add a condition for i==' ' apart from it being isalnum(). Then it won't get cleared and so you won't need to add it again later on.
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message