-
Language
C#
-
Description
Month name
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
namespace MonthName
{
class MonthName
{
static void Main(string[] args)
{
int month;
Console.Write("Enter the value of month: ");
month = int.Parse(Console.ReadLine());
if(month==1)
Console.WriteLine("January");
if(month==2)
Console.WriteLine("February");
if(month==3)
Console.WriteLine("March");
if(month==4)
Console.WriteLine("April");
if(month==5)
Console.WriteLine("May");
if(month==6)
Console.WriteLine("June");
if(month==7)
Console.WriteLine("July");
if(month==8)
Console.WriteLine("August");
if(month==9)
Console.WriteLine("September");
if(month==10)
Console.WriteLine("October");
if(month==11)
Console.WriteLine("November");
if(month==12)
Console.WriteLine("December");
Console.WriteLine();
Console.Write("Press any key to finish . . . ");
Console.ReadKey();
}
}
}
namespace MonthName
{
class MonthName
{
static void Main(string[] args)
{
int month;
Console.Write("Enter the value of month: ");
month = int.Parse(Console.ReadLine());
if(month==1)
Console.WriteLine("January");
if(month==2)
Console.WriteLine("February");
if(month==3)
Console.WriteLine("March");
if(month==4)
Console.WriteLine("April");
if(month==5)
Console.WriteLine("May");
if(month==6)
Console.WriteLine("June");
if(month==7)
Console.WriteLine("July");
if(month==8)
Console.WriteLine("August");
if(month==9)
Console.WriteLine("September");
if(month==10)
Console.WriteLine("October");
if(month==11)
Console.WriteLine("November");
if(month==12)
Console.WriteLine("December");
Console.WriteLine();
Console.Write("Press any key to finish . . . ");
Console.ReadKey();
}
}
}