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 trialSteve Gabriel
Courses Plus Student 251 PointsHi I'm on the C# Basic video and one of the objectives challenge task 1 of 2 use the System.Console.Write() it's not wor
It keeps saying Bummer and I can't find my mistake
System.Console.Write("Enter a book title:")
3 Answers
james south
Front End Web Development Techdegree Graduate 33,271 Pointsthe error tells you to make sure your string is exactly what they are asking for. you are missing a space after the colon. you are also missing the semicolon at the end of the line.
Steve Gabriel
Courses Plus Student 251 PointsCS0117: is an error message I received after I corrected the string here's what I updated it to System.Console.Write("Enter a book title: ");
Daniel Hildreth
16,170 PointsOk so here's the question it asks:
Use the System.Console.Write() method to print "Enter a book title: " to the console. First off, on small things like this, I usually write out the beginning statement and then fill it in. So I would write:
System.Console.Write();
It then asks you to enter the phrase. You must enter it exactly as it is (this includes the space after the semi-colon), in order to pass the challenge. So upon filling in the phrase, you end with the following (also don't forget your closing semi-colon after the statement):
System.Console.Write("Enter a book title: ");
Steve Gabriel
Courses Plus Student 251 PointsSteve Gabriel
Courses Plus Student 251 PointsCS0117: is an error message I received after I corrected the string here's what I updated it to System.Console.Write("Enter a book title: ");