using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication13
{
class Program
{
public enum gender {Male,Female }
static void Main(string[] args)
{l1:
Console.WriteLine("Press 0 for Male");
Console.WriteLine("Press 1 for Female");
int v = int.Parse(Console.ReadLine());
if (v==0)
{
Console.WriteLine("you have seleced "+gender.Male);
}
else if (v==1)
{
Console.WriteLine("you have seleced "+gender.Female);
}
else
{
Console.ForegroundColor = System.ConsoleColor.Red;
Console.WriteLine("Wrong selection .....");
Console.ForegroundColor = System.ConsoleColor.White;
}
goto l1;
Console.ReadLine();
}
}
}