Level 6 - Count controlled iterations and scope 0 of 9 activities solved
  1. Countdown to launch Not yet solved
  2. Rainfall Not yet solved
  3. Notebook Not yet solved
  4. Times tables Not yet solved
  5. Voting count Not yet solved
  6. Fizz Buzz Not yet solved
  7. Find and replace Not yet solved
  8. Twelve days of Christmas Not yet solved
  9. Distribution of two dice Not yet solved
Next series Assessment point - Levels 1-6
Level 6 - Count controlled iterations and scope

Countdown to launch

Sign in to hand in your solution and get feedback.

// Countdown to launch program using System; using System.Threading; class Submission { // ------------------------- // 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 // ------------------------- public static void Main(string[] args) { countdown(); } }