write a c program to accept a string from console and to display the following on console: a) total number of characters in the string. b) total number of vowels in the string. c) total number of occurrence of character 'a' in the string. d) total number of occurrence of string 'the' in the string.
Answers
Answered by
0
Answer:
Algorithm
Define a string.
Convert the string to lower case so that comparisons can be reduced. ...
If any character in string matches with vowels (a, e, i, o, u ) then increment the vcount by 1.
If any character lies between 'a' and 'z' except vowels, then increment the count for ccount by 1.
Print both the counts.
Similar questions
Geography,
26 days ago
Social Sciences,
26 days ago
Math,
26 days ago
English,
1 month ago
Science,
1 month ago
Computer Science,
10 months ago
Math,
10 months ago
Hindi,
10 months ago