Skip to main content

Practice · 1 of 3

strlib: Vowel Report

CHALLENGE
Difficulty: beginner+25 XP

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).

Back to lesson: Practice: Library Building