Practice ยท 1 of 3
strlib: Vowel Report
Implement public int count_vowels(const char *s) (aeiou, case-insensitive) and public double vowel_ratio(const char *s) (vowels / length; empty string -> 0.0), backed by a static helper static int is_vowel_ci(char c).
Difficulty: beginner
Press Submit to check your solution.
Back to lesson: Practice: Library Building