Sie sind auf Seite 1von 2

/* NAME: VARUN AGGARWAL

ROLL NO: 1 SEM-1 ICA DIV: A


SUBJECT: FOP
DEFINITION:

*/

#include<stdio.h>
#include<conio.h>

int main()
{
int num;
clrscr();
printf("Enter the number num: ");
scanf("%d",&num);
switch(num)
{
case 1:
printf("\nMonth is JANUARY");
break;
case 2:
printf("\nMonth is FEBRUARY");
break;
case 3:
printf("\nMonth is MARCH");
break;
case 4:
printf("\nMonth is APRIL");
break;
case 5:
printf("\nMonth is MAY");
break;
case 6:
printf("\nMonth is JUNE");
break;
case 7:
printf("\nMonth is JULY");
break;
case 8:
printf("\nMonth is AUGUST");
break;
case 9:
printf("\nMonth is SEPTEMBER");
break;
case 10:
printf("\nMonth is OCTOBER");
break;
case 11:
printf("\nMonth is NOVEMBER");
break;
case 12:
printf("\nMonth is DECEMBER");
break;
default:
printf("\nInput is wrong..!!!");
}
getch();
return 0;
}

/* OUTPUT:

*/

Das könnte Ihnen auch gefallen