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

PROGRAMMING:Input a line of characters through the keyboard, and count the number of English letters, spaces, numbers and other characters.

Luz5年前 (2021-05-10)题库464
Count the number of English letters, spaces, numbers and other characters in a string
###Input format:
Input a line of characters (any character) through the keyboard
###Output format:
Count the number of Chinese and English letters, spaces, numbers and other characters in a line of string
###Input example:
```in
rwrwewre2345asdJSJQI%^&(& *&sdf YY( 2342-k'
```
###Output example:
```out
Number of letters: 22
Number of numbers: 8
Number of spaces: 5
Number of other characters: 10
```







answer:If there is no answer, please comment