Monday, February 16, 2009

Exer 4 CS 121


Photobucket

#include
#include

void main(){
clrscr();
int day;
gotoxy(28,5);printf("Enter an integer:");
scanf("%d",&day);

switch(day){
case 1:
gotoxy(30,10);printf("Sunday");
break;
case 2:
gotoxy(30,10);printf("Monday");
break;
case 3:
gotoxy(30,10);printf("Tuesday");
break;
case 4:
gotoxy(30,10);printf("Wednesday");
break;
case 5:
gotoxy(30,10);printf("Thursday");
break;
case 6:
gotoxy(30,10);printf("Friday");
break;
case 7:
gotoxy(30,10);printf("Saturday");
break;

default:
gotoxy(20,10);printf("S O R R Y !! Day is not available!!");}
printf("\n\n\t\t\t\t\tProgrammed by: SHERLUCK L. MERCADO");
printf("\n\t\t\t\t\tCS121 (5820) / 12:30 - 2:30 / H1I");
getch();

No comments:

Post a Comment