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

david handy
david handy
308 Points

method

tried regular print statement System.WriteLine(); print ("enter this"); this also did not work.

CodeChallenge.cs
System.Console.Write();
string entry = System.Console.ReadLine("Enter a book title:");
Daniel Tkach
Daniel Tkach
7,608 Points

Hi,

they are asking you to write "Enter a book title: " not "Enter a book title:" as you wrote it ;)

1 Answer

Steven Parker
Steven Parker
231,248 Points

It looks like you have a few things to fix:

  • the string to output should be the argument to the Write method on the first line
  • as Daniel observed, you're missing the space at the end of the string
  • the ReadLine method takes no arguments
  • the challenge asked you to create a variable named "bookTitle", but you have "entry" instead