THE EXERCISE OF THE GUYS GUYS HAS BEEN MOVED TO THE MENU "EXERCISE OF Teacher"

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!

2 Comments

Add a Comment