using System; using System.Collections.Generic; class Program { static void Main() { char[] symbols = new char[10]; Stack stack = new Stack(); Console.WriteLine("Введите 10 символов:"); for (int i = 0; i < 10; i++) { symbols[i] = Console.ReadKey().KeyChar; } foreach (char symbol in symbols) { stack.Push(symbol); } Console.WriteLine("\nСимволы добавлены в стек:"); foreach (char item in stack) { Console.Write(item + " "); } } }