Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Globalization;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace _07.TravellCompany
- {
- class Program
- {
- static void Main(string[] args)
- {
- int[] arr = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
- int m = arr[0];
- int n = arr[1];
- List<int> list = Console.ReadLine().Split(' ').Select(int.Parse).ToList();
- List<int> letterList = new List<int>();
- letterList = list.Where(x => x >= 65 && x <= 90).Skip(m).Take(n).Select(x => x).ToList();
- foreach (var item in letterList)
- {
- Console.Write((char) item);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement