Question 4:
(3 marks)
The given file Q4.c already contains statements to enter a string named s. You should write statements to count the number of words starting with letter 'a' or 'A' in the string s.
Notes:
- You can create new function(s) if you see it is necessary.
- Do not edit given statements in the main function.
Sample input and output:
-Input: Anh hoa an tuong
Output for marking:
OUTPUT:
2
-Input: hom nay toi di hoc
Output for marking:
4 of 4
Paper No: 1
OUTPUT:
Zoom
+ 88%
Close