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

I'm having trouble with Challenge Task 4 of 4, I'm not sure if I'm wrong or if there may be a bug. Is there anyone else?

I'm entering what I'm thinking is the right answer using what's in the video prior. I'm using string entry = System.Console.ReadLine(); is that not right to read user's response.

Alan MattanΓ³
Alan MattanΓ³
Courses Plus Student 12,188 Points

Place mark bothxp as correct answer so this tread is close if you consider he answer correctly.thx

1 Answer

Hi Travis,

The task is asking you to read the users response and store it in the bookTitle variable that you created in task 1.

In your code you are creating a new string variable called entry, rather than using your bookTitle variable.

To store the users response back into the bookTitle variable you would use:

bookTitle = System.Console.ReadLine();

sorry for the delayed response but Thank You!