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

PROGRAMMING:Counts the number of characters specified in the string

Luz5年前 (2021-05-10)题库441
Enter a string and a character to count the number of times the character appears in the string
###Input format:
Enter 2 lines. The first line is the string and the second line is the character to look for.
###Output format:
The number of times the character appears
###Input example:
```in
abcdefgabcdefg
a
```
###Output example:
```out
two
```







answer:If there is no answer, please comment