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 Formatting Output

C# Basics, Final Challenge, Task 2.

Apparently I've forgotten to assign firstName to the Console.Write parameter. I do not understand how this is..

CodeChallenge.cs
string entry = "firstName";
Console.ReadLine();
Console.WriteLine(entry);

1 Answer

Jon Wood
Jon Wood
9,884 Points

You're almost there! When you do Console.ReadLine it returns a string of whatever the user input into the console. So here you just need to return that into the string variable you defined earlier. That will definitely work, but in order to pass the challenge the entry variable may need to be updated to firstName.