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

PROGRAMMING:Count the number of words in a line of text

Luz5年前 (2021-05-10)题库516
This topic requires the preparation of procedures to count the number of words in a line of characters. The so-called "word" refers to the continuous string without spaces. The words are separated by spaces, and the number of spaces can be multiple.
###Input format:
Enter to give a line of characters.
###Output format:
Output the number of words in a line.
###Input example:
```in
Let's go to room 209.
```
###Output example:
```out
five
```






answer:If there is no answer, please comment