0
What is wrong with my code? Am told the name love doesnt exist in the current context
string name = love; int cars= 2; Console.WriteLine("My name is {0} and i own {1}", name, cars);
2 Answers
+ 1
love should be text, right? That's called a string. Strings are always in single (') or double (") quotation marks.
So do: string name = "love"
+ 1
Yes , i came to figure out later...thanks bye the way programming is though for me