This test case is hidden (newbie!!!!!!!)
im learning c#. Arrays how to open hidden test ? i just want to know that what is requested in this test ......................................... heres questions; A game machine has 5 games installed on it: string[] games = { "Alien Shooter", "Tic Tac Toe", "Snake", "Puzzle", "Football" }; C# Write a program to take N number as input and output the corresponding game with N index from the array. If user enters an invalid number that is out of array range, the program should output "Invalid number". and heres my code ; static void Main(string[] args) { string[] games = { "Alien Shooter", "Tic Tac Toe", "Snake", "Puzzle", "Football" }; int n = Convert.ToInt32(Console.ReadLine()); if (n<0 || n>5) { Console.WriteLine("Invalid number"); } else { Console.WriteLine(games[n]); } } and heres result ; Test Case 1 solved Input 0 Your Output; Alien Shooter Expected Output ; Alien Shooter Test Case 2 solved Input 4 Your Output ;nnFootball Expected Output ;nnFootball Test Case 3 solved Input ; 7 Your Output ; Invalid number Expected Output ; Invalid number and there are two more hidden case didnt solved what should i do ??? class ; c# intermediate - Arrays and Strings - Arrays