Please help me with the task: Reprogram Droids.

Hello, I’m working on this task:

Write a program that outputs numbers 5…1 ending with “Go!”. Start each on a new line.

Here is my code:


public static class ReprogramDroids
{
   public static void Main()
   {
       // Write your code under this line
       Console.WriteLine(5);
       Console.WriteLine(4);
       Console.WriteLine(3);
       Console.WriteLine(2);
       Console.WriteLine(1);
       Console.WriteLine("Go!")

   }
}

Can anyone please help me to solve it?

Your Go! WriteLine needs a semicolon at the end

1 Like

On the last line where you are outputting “Go!”, you have to add a semicolon

1 Like