Week 6: December 14 - 20. Char arrays 1
Count the letters
Given a string s and a letter c. How many times the letter appears in the string?
First line contains string s with no more than 100 symbols. Second line contains lowercase letter c of Latin alphabet.
Print how many times letter c appears in the string s. Uppercase and lowercase letter considered the same. For example, 'a' and 'A' considered the same letters.
Programming Principles 1 p
This is a cat sitting on a table t