Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- namespace WordFilter
- {
- class MainClass
- {
- public static void Main()
- {
- List<string> words = Console.ReadLine().Split().ToList();
- var filteredList = words.Where(x => x.Length % 2 == 0).ToList();
- foreach (var item in filteredList)
- {
- Console.WriteLine(item);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement