// Countdown to launch program
using System;
using System.Threading;
public class Program
{
// -------------------------
// Subprograms
// -------------------------
static void countdown()
{
Console.WriteLine("T minus...");
for (int counter = 10; counter > 0; counter--)
{
Console.WriteLine($"{counter} ...");
Thread.Sleep(1000);
}
Console.WriteLine("0 ...");
Console.WriteLine("All engines running.");
Console.WriteLine("Lift off, we have a lift off on Artemis 1.");
Thread.Sleep(1000);
Console.WriteLine("Tower clear.");
Console.ReadLine();
}
// -------------------------
// Main program
// -------------------------
static void Main()
{
countdown();
}
}