I am learning to program C# and I am trying to count the vowels. I am getting the program to loop through the sentence, but instead of returning vowel count, it is just retu
int cnt = 0; for (char c in sentence.ToLower()) if ("aeiou".Contains(c)) cnt++; return cnt;