-->
当前位置:首页 > 题库

PROGRAMMING:Or statistical words

Luz5年前 (2021-05-10)题库376
For a sentence string (no more than 100 characters), all characters do not contain any punctuation, and words are separated by several spaces to count the number of words( Tip: find the end of each word)
The program inputs several sentences and outputs the number of words in turn.
###Input format:
One sentence per line, input may be multiple lines.
###Output format:
Output the number of words, a result of a line.
###Input example:
```in
I am a slow walker but I never walk backwards
I LOVE YOU
```
###Output example:
```out
ten
three
```







answer:If there is no answer, please comment