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

Leo Ngai
Leo Ngai
2,184 Points

I don't think I am wrong. Help!

My answer should be right

CodeChallenge.cs
string bookTitle =  System.Console.ReadLine();

2 Answers

Steven Parker
Steven Parker
229,787 Points

:point_right: You must leave the task 1 code and add to it.

Your code above should work for task 2, but if that's your entire submission, it's missing the code you would have written for task 1.

If you add this after the task 1 code you should pass task 2.

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,858 Points

Hey there,

Your code above is correct...

But where is the code that was asked for in the First task of the challenge? Both lines need to be there. Remember, unless specifically asked by the tasks' instructions, you can't delete code from task to task.

Keep Coding! :) :dizzy: