#include< stdio.h >
#include< string.h >
void main()
{
char month[12][10];
int i,j;
clrscr();
for(i=0;i< 12;i++)
{
printf("Enter the month name:-");
scanf("%s",&month[i]);
}
printf("Month names are:-\n");
for(i=0;i< 12;i++)
{
j=0;
while(month[i][j]!='\0')
{
printf("%c",toupper(month[i][j]));
j++;
}
printf("\n");
}
getch();
}
No comments:
Post a Comment