Question 4:
(3 marks)
The given file Q4.c already contains statements to input data for two strings: sand k. You should write statements to count the times of k in string s. (Hints: All strings have removed extra spaces and converted to lowercase)
Notes:
- Do not edit given statements in the main function.
- You can create new functions if you see it is necessary.
Sample input and output:
-Input:
Please enter strings: Practice Exam PRF192
Please enter string k: Pr
Output for marking:
4 of 4
Paper No: 1
+ 100%
Zoom
Close