#include<stdio.h>
#include<conio.h>
void main()
{
int mn;
clrscr();
printf("\n enter month number");
scanf("%d",&mn);
switch(mn)
{
case 1:printf("january");
break;
case 2:printf("february");
break;
case 3:printf("march");
break;
case 4:printf("april");
break;
case 5:printf("may");
break;
case 6:printf("june");
break;
case 7:printf("july");
break;
case 8:printf("august");
break;
case 9:printf("september");
break;
case 10:printf("october");
break;
case 11:printf("novermber");
break;
case 12:printf("december");
break;
default:printf("invalid number");
}
getch();
}
#include<conio.h>
void main()
{
int mn;
clrscr();
printf("\n enter month number");
scanf("%d",&mn);
switch(mn)
{
case 1:printf("january");
break;
case 2:printf("february");
break;
case 3:printf("march");
break;
case 4:printf("april");
break;
case 5:printf("may");
break;
case 6:printf("june");
break;
case 7:printf("july");
break;
case 8:printf("august");
break;
case 9:printf("september");
break;
case 10:printf("october");
break;
case 11:printf("novermber");
break;
case 12:printf("december");
break;
default:printf("invalid number");
}
getch();
}
No comments:
Post a Comment