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

Ques:On a new line, use the System.Console.Write() method to print "Enter a book title: " to the console. ANS: strin

Not sure what I have done wrong.

CodeChallenge.cs
string bookTitle = "Bible";
System.Console.Write("Enter a book title:");

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

You're doing great! It's just that challenges require you to follow instructions to the letter- You left out a space at the end of your string. It simply wants it there so that the user's input won't be pushed up against the colon. Take a look:

System.Console.Write("Enter a book title: ");  //note the space between the colon and the closed parentheses

Hope this helps! :smiley:

Thanks Jennifer!!