using System;namespace GotoTest{ class Test { enum orientation:int { south, north, east, west } struct route { public orientation myorientation; public Double distance; } public static void Main() { route myRoute; Console.WriteLine("0->South\n1->North\n2->East\n3->West"); Console.WriteLine("select your orientation"); int x = Convert.ToInt16(Console.ReadLine()); myRoute.myorientation=(orientation)x; Console.WriteLine("select your distance"); double y = Convert.ToDouble(Console.ReadLine()); myRoute.distance = y; if (x > 0 && x < 4) { Console.WriteLine("your direction is {0} and your distance is {1}", myRoute.myorientation, myRoute.distance); } else { Console.WriteLine("your direction cannot find and your distance is {1}", myRoute.myorientation, myRoute.distance); } Console.ReadLine(); } }}