Introduction to C# Beginner Course

Working with Exercises

Exercises look very much like interactive examples. The difference is that it is your turn to write the code.

As with the interactive examples, you will see any output right away in the lower pane. But of course, just having some output doesn't mean the program is written or running correctly.

Exercises actually look at the code you have written and verify that it is correct. This includes not just that is produces the correct output, but also that it produces the output in the correct way. Pretty cool eh?

Here is what an exercise looks like:

1 - Copy To Clipboard - This button will copy all the code to the clipboard. This is very handy if you want to paste it into Visual Studio.

2 - Open in .NET Fiddle - This button will open the code in .NET Fiddle. Once in .NET Fiddle, you can save it as your own fiddle.

3 - Code Window - This is where you write your code. It includes great features such as code completion and error highlighting.

4 - Console Window - This window shows all the output you send to the console via the Console.Write and Console.WriteLine statements.

5 - Reset and Verify Buttons - After you have written your code, press verify to see if is correct. If it is correctly written and produces the correct output, you will see "Well Done" in the Verification Results section. If there is an error, it will appear in red.

6 - Verification Results - If you have an error, pay close attention to what the Verification Results section says. .NET Academy is very smart and will give you detailed information about the error.

Take a look at your first exercise, "Getting Started with Exercises" next.

Page 4 of 8