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;
- 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 dubNums =
- from x in number
- where x > 10 && x < 100
- select x + 1;
- foreach (var x in dubNums)
- {
- sw.WriteLine(x);
- }
- }
- }
- }
- }
- }
- 9
- 5557 86 78 99 04 76 75757 4884 777
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement