Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

Greg Patten
Greg Patten
243 Points

A little confused...

I'm on the first objective, I came up with this code:

System.Console.Write("Hello: ");

is that not right?

Thanks, Greg

CodeChallenge.cs
System.Console.Write("Hello: ");

2 Answers

andren
andren
28,521 Points

Challenges are very picky about text output. They asks you to print "Hello" and expect you to print that exact message and nothing else.

The colon and space in your message is enough for it to not be an exact match with the message they asked for. If you print out "Hello" without those then your code will pass.

Greg Patten
Greg Patten
243 Points

Thank you for your help