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

PROGRAMMING:Statistics characters and spaces

Luz5年前 (2021-05-10)题库371
This requires the preparation of procedures, input a line of characters, statistics of the number of digital characters, spaces and other characters. The switch statement is recommended.
###Input format:
Input gives several characters in one line, and the last carriage return indicates the end of input, not counting.
###Output format:
Follow the
```
Blank = number of spaces, digit = number of numeric characters, other = number of other characters
```
Format output. Notice that there is a space to the left and right of the equal sign and a space after the comma.
###Input example:
Here is a set of inputs. For example:
```in
Reold 12 or 45T
```
###Output example:
The corresponding output is given here. For example:
```out
blank = 3, digit = 4, other = 8
```







answer:If there is no answer, please comment