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#

Hussein Khan
Hussein Khan
617 Points

C# basics. Having trouble with a task question. Help?

So the task asks me to: Declare a variable named firstName and initialize it to the string returned from a call to Console.ReadLine().

My code: string firstName = Console.ReadLine();

// I have also tried System.Console.ReadLine(); without any succes.

It is the first task challenge on the last step of C# Basics .

What am I doing wrong?

Matti Mänty
Matti Mänty
5,885 Points

There shouldn't be anything wrong with that - what's the error message you are receiving?

1 Answer

Hussein Khan
Hussein Khan
617 Points

Its working fine today...i dont get it. Could it be some problem with the website?