Writing hello to the console in C#
I'm trying to do as the exercise is telling me, I'm writing the code as follows: System.Console.Write("Hello: ");
When I check my work it tells me to look at what I wrote between the parentheses and asks if I used a double quote. I copied this from the program that I wrote along with the video, the one I wrote along with the video worked just like Jeremy's did, but now this one wont work. What's the problem?
Just Like Joseph said. The challenge is asking you print "Hello", not "Hello: ". You can just copy paste "Hello" into the parentheses.
Joseph LesofskiCourses Plus Student 1,511 Points
Not sure if I remember what the exercise is asking exactly but I think the problem is you have too much syntax in your string. Instead just write System.Console.Write("Hello");
Thanks guys, I don't understand why it didn't accept it the way I typed it out when the video before hand showed me otherwise.