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

PROGRAMMING:The number of each numeric character and other characters in the string ending with '#'

Luz5年前 (2021-05-10)题库464
Count the number of each numeric character and the number of other characters in the string ending with "#" entered from the keyboard
###Input format:
Enter several characters ending with '#' in one line. Don't use line breaks, spaces, tabs.
###Output format:
In a row, the output is in the order of "digit = number of each digit character", and each numeric output occupies 2 columns.
In the next line, output in the order of "other = number of other characters", the number of other characters is output as is, without column width control.
###Input example:
```in
232235fg#
```
###Output example:
```out
digiter= 0 0 3 2 0 1 0 0 0 0
other=2
```






answer:If there is no answer, please comment