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 trialGeorge Gregorczyk
3,028 PointsI do not know how to solve this question
I get errors and need the right code.
string language = Console.ReadLine("C# Rocks!");
language = C#;
language == C#;
if (language == C#){
Console.ReadLine ("C# Rocks!");
}
1 Answer
Ben Reynolds
35,170 Pointsstring language = Console.ReadLine("C# Rocks!");
language = C#; // These two lines can be deleted.
language == C#; // The exercise will submit its own value for language when it tests your code
if (language == C#) // We're checking for a string value here so you'll need quotes
{
Console.ReadLine ("C# Rocks!"); // We need to print to the console, not read from it. You'll need a different method than ReadLine.
}
George Gregorczyk
3,028 PointsGeorge Gregorczyk
3,028 Pointsthanks