Answer the question
In order to leave comments, you need to log in
What does the Count method do in this case?
There is a part of the program code.
foreach (var line in lines)
{
int vowels_count = line.Count(x => vowels.Contains(x));
int consonants_count = line.Count(x => consonants.Contains(x));
if (vowels_count > consonants_count)
Console.WriteLine(line);
int vowels_count = line.Count(x => vowels.Contains(x));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question