Wap to count no. of spaces in a string. | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Wap to count no. of spaces in a string.

30th Dec 2016, 11:59 AM
Mayur Kumar
Mayur Kumar - avatar
3 ответов
+ 2
Go through the string with a loop and comprae each char with " " and if it is true increase a counter
30th Dec 2016, 12:07 PM
Andreas K
Andreas K - avatar
+ 1
It is that easy that we can give further support for your issue but we do not want to do your work if it is. So please describe your issue more detailed or show us your broken code, so we can help you debuging.
30th Dec 2016, 5:39 PM
Andreas K
Andreas K - avatar
- 2
give me the proper syntax
30th Dec 2016, 12:08 PM
Mayur Kumar
Mayur Kumar - avatar