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

xufan liu
xufan liu
1,121 Points

System.Console.Write("Enter a book title: " ) is it the right answer to this question? if not ,what is the right answer

I tried a few times to get it sorted . but i don`t know where should be corrected. Could you please point out what are the mistakes in my code ? Thank you !

CodeChallenge.cs
System.Console.Write("Enter a book title: " ) 

1 Answer

andren
andren
28,558 Points

Your code is extremely close. You have just forgotten to place a semicolon at the end of the line. Like this:

System.Console.Write("Enter a book title: ");

All statements in C# has to end with a semicolon, it's a mandatory part of the language.