public static void Main()
Console.WriteLine("-------------------------");
Console.WriteLine("\nELIGIBLE FOR VOTE OR NOT");
Console.WriteLine("\n-------------------------");
Console.WriteLine("\nEnter your age");
x=Convert.ToInt32(Console.ReadLine());
Console.WriteLine("YOU ARE ELIGIBLE FOR VOTING");
Console.WriteLine("YOR ARE NOT ELIGIBLE FOR VOTING");
Console.WriteLine("Do you want to continue:1.Y/2.N");
z=Convert.ToInt32(Console.ReadLine());
Console.WriteLine("\nExit the program");