Start learning free

LESSON 144 OF 674 · FOR LOOPS - LOOPING OVER ARRAYS

For Loops - Execution Flow: Buggy Code III in C#

Practice

Inside the code editor we've tried to write a program that should print:

What a nice day!
Hey, Andy
How are you?
Hey, Mike
How are you?
Hey, Mary
How are you?
Let's start the class!

but it seems like we made some mistakes because when we run our code, it doesn't even compile.


Assignment:

Your task is to fix our code such that it will print the desired output.

STEP 1 OF 1
    Ctrl + Enter to check