0

Can I have some help to get this working?

I've just started C# and im trying to get this to work but cant find away to. using System; namespace Challenge { class Program { static void Main(string[] args) { Console.WriteLine("What's your favourite Colour?"); // Computers favourite colour string FColour = "purple"; // User favourite colour string UColour = Console.ReadLine(); if (UColour == FColour) { Console.WriteLine("Purple? mine too!"); }else{ Console.WriteLine("{1}? Well mines purple",UColour); } } } }

8th Mar 2018, 4:24 PM
lewisKnight
lewisKnight - avatar
2 Answers
0
Try replacing {1} with {0}, the program Starts always counting from 0 and you have only one argument
8th Mar 2018, 5:02 PM
Jente
+ 1
thank you for the help!
8th Mar 2018, 5:13 PM
lewisKnight
lewisKnight - avatar