class Program
{
static void Main(string[] args)
{
if (GetMonth(5) != string.Empty)
{
Console.WriteLine(GetMonth(5));
}
else
{
Console.WriteLine("Invalid");
}
Console.ReadLine();
}
private static string GetMonth(int month)
{
try
{
DateTime date = new DateTime(1900, month, 1);
return date.ToString("MMM");
}
catch (Exception ex)
{
return string.Empty;
}
}