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 Variables

Robin Gill
Robin Gill
2,725 Points

System.Console.Write("Favourite Book Ttile"); string booktitle

Please help

CodeChallenge.cs
System.Console.Write("Favourite Book Ttile");
string booktitle

2 Answers

Steven Parker
Steven Parker
229,644 Points

You won't need to call any functions for this challenge. You just create a variable and initialze it with a string.

But notice that instead of "booktitle", the instructions ask for "bookTitle" (capital "T").

And as a general hint: for best results with all the challenges, follow the instructions carefully and don't do anything extra that they don't ask for.

What Steven is saying is 100% correct! The function he refers to is your "Console.Write()"... Next, in every "Code Challenge", your capitals are to be placed at the right place, or else it'll show you an error (not a console error, just an error saying you didn't follow the instructions (even if the code is correct))... And finally, just simply type in your favourite book (it can be anything, a great book like Tom Clancy's Rainbow Six or Eat, Pray, Love), it can actually be any, the book isn't the important part, it can be any string (a sequence of CHARACTERS).

Hint: it can all be done in one line, just add an equals + your string... And don't forget your semi-colons (;)... Good luck!