Learn

Time to run some C# yourself!


There are two panels here: a text editor containing some C# code and a console, or terminal, that shows output. When you run the code, you’ll see some text printed to the console.


The code is contained in a file called Program.cs. For now, just focus on the line:


Console.WriteLine("Hello World!");

Console.WriteLine() is a command that prints text to a console. Whatever is in between the parentheses will be printed to the console!
 In this case it’s Hello World!.

Instructions

1.

Change the code in the editor so that your own name is printed to the console!

Make sure to run the code after you edit the text.

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?