โ Back to Strings
Question 198
Count Words
Count Words
A sentence is given. Print how many words it has by splitting on spaces. For "the quick brown fox" the program prints 4.
Expected Output:
4
Topics:
Strings
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cw, cr, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.