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 Console I/O

ali raafat
ali raafat
444 Points

i always get this " Make sure to use the exact message from the instructions. Note the trailing space. Copy/paste"

System.Console.Write("harry potter ");

CodeChallenge.cs
System.Console.Write("harry");

1 Answer

andren
andren
28,558 Points

It seems you have misunderstood the instructions a bit, when they tell you to print "Enter a book title: ", they mean that you are supposed to literally print out the exact message "Enter a book title: ", you (the programmer) is not mean to enter the name of a book, the message is there to prompt users to enter a book title into the program.

So to solve the first task you have to do exactly what the error message is telling you to do. Use the exact message as it appears in the task instructions, like this:

System.Console.Write("Enter a book title: ");
ali raafat
ali raafat
444 Points

thank you so much