Write a program that reads a sequence of characters and another character, and outputs the number representing how many times this character appears in the sequence.
Try to use the standard methods to write the program.
Write a program that reads a sequence of characters and another character, and outputs the number representing how many times this character appears in the sequence.
Try to use the standard methods to write the program.
Sample Input 1:
a a a b a
aSample Output 1:
4Create a free account to access the full topic