//WAP TO PRINT OUT THE NAMES OF THE DAYS OF THE WEEK.
#include<conio.h>
#include<stdio.h>
void main()
{
char day[7][10]={"SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY"};
int i;
clrscr();
for(i=0;i<7;i++)
{
printf("%s\n\n",day[i]);
}
getch();
}
/*--------------------------------------------------------------
OUTPUT
----------------------------------------------------------------
SUNDAY
MONDAY
TUESDAY
WEDNESDAY
THURSDAY
FRIDAY
SATURDAY
*/
No comments:
Post a Comment