title: c# read the number of month and output the name of month
body: <p>Im trying to write a C# console program to read in the number of a month and output the name of the month, and then ask the user if they want to know the number of days in that month and if so output the number of days. Assuming that there are no leap years and February ALWAYS has 28 days only. </p>
  
  <p>Thanks in advance if anyone can help!!</p>
  
  <p>EDIT:</p>
  
  <p>This is what I have so far, I'm having trouble with the second half of the problem, I'm not sure how to ask the user if they want to know the days of the month and how to use a switch to output the number of days...</p>
  
  <pre><code>class MainClass
  {
    public static void Main (string[] args)
    {
      {
        Console.WriteLine("Give me an integer between 1 and 12, and I will give you the month");
  
        int monthInteger = int.Parse(Console.ReadLine());
  
        DateTime newDate = new DateTime(DateTime.Now.Year, monthInteger, 1);
  
        Console.WriteLine("The month is: " + newDate.ToString("MMMM"));
        Console.WriteLine();
  </code></pre>