Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- namespace ConsoleApp3
- {
- class Program
- {
- static void Main(string[] args)
- {
- char[] sz = {'б', 'в', 'г', 'д', 'ж', 'з', 'л', 'м', 'н', 'р'};
- string[] s = Console.ReadLine().Split(new[] {',','.'}, StringSplitOptions.RemoveEmptyEntries).ToArray();
- Console.WriteLine(String.Join(", ", sz.Except(s.Select((item, index) => new { Item = item, Index = index }).Where(n => n.Index % 2 == 0).Select(n => n.Item).SelectMany(x=> x.ToCharArray()))));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement