December 24, 2018
Count the number of occurrences of characters
Threads: Enter a character string and a. Count the number of occurrences of that character in the string provided.
Input: The first line contains the string, second line 2 contains the character should count.
Output: Some is the number of occurrences of the characters in the string. Not case sensitive.
For example:
input: Dao Thi Hong Mai Hoa a output: 3
You are not logged in? Log in to Submit Now!
4 Comments
Add a Comment
You must be logged in to post a comment.
Thầy ơi, nhập chữ “n” phải khác chữ “N” chứ ạ? Sao lại đếm “n” mà đi đếm luôn cả “n” viết hoa thì … @@
Đề bài ghi là không phân biệt hoa thường rồi nhé.
please, let’s fix this. Submit button seems wrong!!
Thank you!. fixed.