-
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
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
#include <stdio.h>
#include <stdlib.h>
int main (void)
{
int month;
printf ("Enter the value of month: ");
scanf ("%d", &month);
(void) getchar ();
if(month==1)
printf ("January\n");
if(month==2)
printf ("February\n");
if(month==3)
printf ("March\n");
if(month==4)
printf ("April\n");
if(month==5)
printf ("May\n");
if(month==6)
printf ("June\n");
if(month==7)
printf ("July\n");
if(month==8)
printf ("August\n");
if(month==9)
printf ("September\n");
if(month==10)
printf ("October\n");
if(month==11)
printf ("November\n");
if(month==12)
printf ("December\n");
putchar ('\n');
system ("pause");
return EXIT_SUCCESS;
}
#include <stdlib.h>
int main (void)
{
int month;
printf ("Enter the value of month: ");
scanf ("%d", &month);
(void) getchar ();
if(month==1)
printf ("January\n");
if(month==2)
printf ("February\n");
if(month==3)
printf ("March\n");
if(month==4)
printf ("April\n");
if(month==5)
printf ("May\n");
if(month==6)
printf ("June\n");
if(month==7)
printf ("July\n");
if(month==8)
printf ("August\n");
if(month==9)
printf ("September\n");
if(month==10)
printf ("October\n");
if(month==11)
printf ("November\n");
if(month==12)
printf ("December\n");
putchar ('\n');
system ("pause");
return EXIT_SUCCESS;
}