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!

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,558 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