So i’ve wanted to create a small program out of boredom and got stuck on CS0019 error can’t really find a way to fix it so i hope you guys can help me.
string[] words = {"moment","100%","French", "I am Dumb","god","satan","keyboard","Error #789","mouse","anime","programming", "Technoblade","phone","autrorization","kolechia","arstozcka","LaBrava","water","uP", "folklore","computer","science","analog","origami","arithmetics","stupid","english"}; Random random = new Random(); string index = random.Next(words.Length); Console.WriteLine(words[index]); int input = int.Parse(Console.ReadLine()); if(input == words[index]){ Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("Correct"); Console.ForegroundColor = ConsoleColor.White; Correct++; }
Anonymous Asked question May 13, 2021
Recent Comments