Hello, I had an assignment about string type sadly I couldn't complete it
Can somebody tell me what is my mistake
(A) Write a function named countThe that takes a string as an input parameter and returns how many “the” was repeated in the string. You should use “String Type” functions discussed in chapter 8 (find, substr, length, swap)
(B) Write a program that reads a string from the user and display the count of “the” in the sentence.
Example for the output
Enter a string: the name of the book is: the programming Concepts