C# C# Basics (Retired) Console I/O Formatting Output

Jacob Gildner
Jacob Gildner
258 Points

Did you forget to pass `firstName` to `WriteLine` as a parameter? I don't understand what it means.

I am having trouble understanding what it means

CodeChallenge.cs
string firstName = Console.ReadLine();
Console.WriteLine("you've entered"+ firstName + "firstName");

2 Answers

Antonio De Rose
Antonio De Rose
20,856 Points

please action your answer, just exactly to what the question ask

string firstName = Console.ReadLine(); Console.WriteLine("you've entered"+ firstName + "firstName"); //challenge 2 asks you to print only the contents of the firstName //challenge 3 asks you to print the contents of the firstName followed by the word " rocks!" -- don't forget space

Steven Parker
Steven Parker
173,958 Points

:mailbox_with_mail: Hi, I got your request. And I agree with Antonio, to avoid confusing the validator, always do just what the instructions ask for. You got too fancy here and concatenated a couple of strings before the challenge asked you to.

To pass task 2, write only the contents of "firstName".