using System;
/*
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
*/
public class Program
{
public static void Main()
string[] tours = { "England", "Spain", "Italy", "Portugal", "France" };
int choice = Convert.ToInt32(Console.ReadLine());
//your code goes here
try{
Console.Write(tours[choice]);
/*u can use switch also
switch(choice)
case (0):
Console.WriteLine(tours[choice]);
break;
}
catch(Exception ex)
Console.WriteLine("Wrong number");
finally
Console.WriteLine("Goodbye");