How Many Vowels

88

How Many Vowels -

using System.Linq;
public class Program 
{
    public static int CountVowels(string str)
      => str.Count(a=>$"aeiouAEIOU".Contains(a));
}

Comments

Submit
0 Comments