+ 2
Your Console.WriteLine is inside the foreach loop. It should be outside the loop.
+ 4
What are you struggling with? and what was the task instruction?
Prefer to add link to your code bit than raw text, it's easier to check, and line number referencing is supported (for pointing out problem location).
https://www.sololearn.com/post/75089/?ref=app