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!

Hermes Crespo
Hermes Crespo
980 Points

I believe I have entered the correct answer but the site keeps saying that my answer is incorrect

Hi.

I believe I have entered the correct answer but the site keeps saying that my answer is incorrect

I did enter the string in double quotes.

CodeChallenge.cs
class  Program
{
        static void Main()
        {
            System.Console.Write("Enter workout in minutes");
        }
}

2 Answers

John Lindsey
John Lindsey
15,641 Points

Is this for the "Say Hello" challenge that is linked to the question? For that challenge, all the problem wants you to do is add the string "Hello" in the System.Console.Write() method.

System.Console.Write("Hello");
Hermes Crespo
Hermes Crespo
980 Points

Thanks a million !! :)

Hermes Crespo
Hermes Crespo
980 Points

That is what I just said. I entered the correct answer which is just to put “Hello” in the parenthesis! But the site keeps telling me that my answer is wrong and DOES NOT let me move forward.

John Lindsey
John Lindsey
15,641 Points

Sorry. Your code snippet above made me wonder if you were working on a different challenge. The code snippet I provided above passes the challenge for me. Sometimes if a challenge isn't acting correctly, it will work if I refresh the challenge.