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

PROGRAMMING:Count the number of words

Luz5年前 (2021-05-10)题库473
Enter a line of characters to end with carriage return and count the number of words in it. A word is a sequence of characters without spaces in the middle. Words are separated by spaces. The number of spaces between words can be multiple.
###Input format:
Enter characters on one line
###Output format:
Output the number of words in a line
###Input example:
Here is a set of inputs. For example:
```in
Let's go to room 209
```
###Output example:
The corresponding output is given here. For example:
```out
count = 5
```







answer:If there is no answer, please comment