public class MonthsNumberUsingEnums
public static void Main()
var rs = Int32.TryParse(Console.ReadLine(), out i);
Console.WriteLine($"Input was {i}, and corresponding month is {MonthName(i)}");
throw new ArgumentException("Input must be of type Integer");
private static string MonthName(int num)