Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ильяс_демон
- {
- class Program
- {
- static void Main(string[] args)
- {
- int b = Convert.ToInt32(Console.ReadLine());
- int[] m = new int[b];
- for (int i = 0; i < b;i++)
- {
- int c = Convert.ToInt32(Console.ReadLine());
- m[i] = c;
- }
- for (int k = 0; k < b / 2; k++)
- {
- int g = 0;
- int j = b-1;
- int z = m[g];
- int x = m[j];
- m[g] = x;
- m[j] = z;
- g = g + 1;
- j = j + 1;
- }
- foreach (int i in m)
- {
- Console.WriteLine(i);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement