Help needed. Used a switch statement in try catch block which worked but the error message wouldn't display. Thanks in advance.
A tour operator offers package holidays in England, Spain, Italy, Portugal and France. The program you are given defines an array with those options and takes N number as input. Write a program to output the package option with N index. If the number is out of range, program should output "Wrong number". Regardless of the option results, the program should output "Goodbye" at the end. Sample Input 2 Sample Output Italy Goodbye using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Console; namespace SoloLearn { class Program { static void Main(string[] args) { string[] tours = { "England", "Spain", "Italy", "Portugal", "France" }; int choice = Convert.ToInt32(Console.ReadLine()); //your code goes here } } }