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

PROGRAMMING:Count the number of words

Luz5年前 (2021-05-10)题库475
Please write a program, input a paragraph of text (end with carriage return), count the number of words and output.
Note: here a word is defined as a continuous string of letters.
####Input format:
>A paragraph of text
####Output format:
>Number of words
####Input sample 1
```in
My name's Catherine Flower.
```
####Output sample 1
```out
five
```
####Input sample 2
```in
I = U / R
```
####Output sample 2
```out
three
```







answer:If there is no answer, please comment