PROGRAMMING:Count the number of various characters in a line
Users input a line of characters (ending with carriage return). Please count the number of upper and lower case letters, number of numeric characters, number of spaces and other characters in this line.
###Input format:
A line of characters ending with a carriage return.
###Output format:
Output 4 integers with spaces as intervals, representing the number of upper and lower case letters, number of numeric characters, number of spaces and other characters respectively.
###Input example:
```in
Tersfi23&* sdf A$
```
###Output example:
```out
10 2 4 3
```
answer:If there is no answer, please comment
There are three key points in this question: < br > 1
1. The number of characters entered by the user is uncertain, but it ends with carriage return. Therefore, we should consider how to enter the loop, what to do in the loop body, and how to terminate the loop< br>
2. These four options are mutually exclusive, so you can use if... Else... If branch structure< br>
3. What should be done to the counter before counting?
###Input format:
A line of characters ending with a carriage return.
###Output format:
Output 4 integers with spaces as intervals, representing the number of upper and lower case letters, number of numeric characters, number of spaces and other characters respectively.
###Input example:
```in
Tersfi23&* sdf A$
```
###Output example:
```out
10 2 4 3
```
answer:If there is no answer, please comment
There are three key points in this question: < br > 1
1. The number of characters entered by the user is uncertain, but it ends with carriage return. Therefore, we should consider how to enter the loop, what to do in the loop body, and how to terminate the loop< br>
2. These four options are mutually exclusive, so you can use if... Else... If branch structure< br>
3. What should be done to the counter before counting?