Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var input = Console.ReadLine()
- .Split(' ')
- .ToList();
- var result = new List<string>();
- for (int i = 0; i < input.Count; i++)
- {
- if (i % 2 != 0)
- {
- result.Add(input[i]);
- }
- }
- Console.WriteLine(string.Join("", result));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement