- 1

Why isn't my code working?

Link: https://code.sololearn.com/c72n6bZMZ2U9/#cs

12th Oct 2020, 10:17 PM
Kaba K
Kaba K - avatar
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(); } }
12th Oct 2020, 10:29 PM
Abhay
Abhay - avatar
+ 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.
12th Oct 2020, 10:31 PM
Kevin ★
0
@kevin i barely know anything let alone how to fix such a big error
12th Oct 2020, 11:11 PM
Kaba K
Kaba K - avatar