Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace IZ7Var1
- {
- //Дан массив размера N. Вывести его элементы в обратном порядке.
- class Program
- {
- static void Main(string[] args)
- {
- int N;
- N = Convert.ToInt32(Console.ReadLine());
- int[] Massiv = new int[N];
- //Вводи массива
- for (int i = 0; i < N; i++)
- {
- Massiv[i] = Convert.ToInt32(Console.ReadLine());
- }
- // Обратный вывод
- for (int i = N-1; i >= 0; i--)
- Console.WriteLine(Massiv[i]);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement