Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C# C# Basics (Retired) Console I/O Say Hello!

Dijana Stjepic
Dijana Stjepic
306 Points

how to write the word hello in the console provided below?

on the first challenge under C# and I am writing my code how I was taught but it is not working

CodeChallenge.cs
//Write the word "hello" to the console in the code provided below
System.Console.Write("Hello: ");

1 Answer

Matthew Lang
Matthew Lang
13,483 Points

You have wrote "Hello: ", when it wants you to simply output "Hello". Here is the correct code:

System.Console.Write("Hello");