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

PROGRAMMING:Count the number of all kinds of characters

Luz5年前 (2021-05-10)题库412
Title: input a group of characters, end with carriage return, count the number of letters (including upper and lower case), numbers, spaces and other characters.
###Input format:
Enter a set of characters to end with carriage return (1 < = number of characters < = 1000)
###Output format:
Output results by type, with letters, numbers, spaces and others in one line
Letters = number
Digits = number
Space = number
Others = number
###Input example:
```in
123 abvR45 6$%+-y
```
###Output example:
The corresponding output is given here. For example:
```out
letters=5
digits=6
spaces=2
others=4
```







answer:If there is no answer, please comment