Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.IO;
- using System.Collections.Generic;
- using System.Linq;
- using System.Security.Cryptography.X509Certificates;
- namespace myloyorrr
- {
- class Program
- {
- static void Main()
- {
- using (StreamReader sr = new StreamReader("C:/Настя/книит/in.txt"))
- {
- using (StreamWriter sw = new StreamWriter("C:/Настя/книит/out.txt"))
- {
- int[] number;
- int n = int.Parse(sr.ReadLine());
- string[] text = sr.ReadLine().Split(' ');
- number = new int[n];
- for (int i = 0; i < n; i++)
- {
- number[i] = int.Parse(text[i]);
- }
- var Nums = number.Where(x => x > 10 && x < 100).Select(x => x + 1);
- foreach (var x in Nums)
- {
- sw.WriteLine(x);
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement