Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Saitluangpuia Sailo3,517 Points
string firstName = Console.ReadLine(); Console.Writeline("Firstname is " + firstname);
this challenge is to accept input from user and print the the input...whats wrong with this?
string firstName = Console.ReadLine(); Console.WriteLIne("firstname = " + firstName);
Jennifer NordellTreehouse Teacher
Hi there! You're really close here! First, you're doing something a little unexpected by passing in the "first name = ". It doesn't want you to do that and will cause the challenge to fail. It only wants you to pass in the
firstName variable and nothing else.
The reason it's not compiling is that you've misspelled
WriteLine. In your version you have a capital I after the capital L. C# does not understand what you're trying to do and will fail to compile. Remember, just about everything in programming is case-sensitive.
After fixing these two issues in your code, it passes the challenge! I think you can get it with these hints, but please let me know if you're still stuck!