Computer Science, asked by elangbamsarju2, 1 month ago

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 NayanKrishnabit
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