- 1
Why isn't my code working?
3 Answers
+ 1
Varaibles names were typed wrong ,check your code 4-5 times before asking a doubt!,
string colour, pluralNoun, celebrity;
Console.Write("Enter a colour: ");
colour = Console.ReadLine();
Console.Write("Enter a plural noun: ");
pluralNoun = Console.ReadLine();
Console.Write("Enter a celebrity: ");
celebrity = Console.ReadLine();
Console.WriteLine("Roses are " + colour);
Console.WriteLine(pluralNoun + "are blue");
Console.WriteLine("i love" + celebrity);
Console.ReadLine();
}
}
+ 1
Please take a closer look at your code. You have some typos there.
If you run this code in CodePlayground you'll get a message like this:
....file0.cs(23;38).....
Those numbers mean that the error can be found at column 38 of line 23. With this knowledge you should be able to debug the code yourself.
0
@kevin i barely know anything let alone how to fix such a big error