using System;
using System.Threading;
namespace PP_4
{
class Program
{
static void Main(string[] args)
{
string fio;
int delaySeconds;
int colorChoice;
Console.Write("Введите Вашу Фамилию, Имя и Отчество: ");
fio = Console.ReadLine();
Console.Write("Введите время задержки в секундах (от 0 до 15): ");
delaySeconds = Convert.ToInt32(Console.ReadLine());
Console.Write("Введите номер цвета (от 0 до 15): ");
colorChoice = Convert.ToInt32(Console.ReadLine());
Console.SetWindowSize(80, 25);
Thread.Sleep(delaySeconds * 1000);
Console.ForegroundColor = (ConsoleColor)colorChoice;
int left = (Console.WindowWidth / 2) - (fio.Length / 2);
int top = (Console.WindowHeight / 2);
Console.SetCursorPosition(left, top);
Console.WriteLine(fio);
Console.ResetColor();
Console.ReadKey();
}
}
}
-----
0.680036 ₽ · /balance_help