C Program to print call of day (habits)
#include<stdio.h>
#include<conio.h>void main()
{
int a;
clrscr();
printf("Enter integer time\n");
scanf("%d",&a);
switch(a)
{
case 6:
printf("waking up");
break;
case 7:
printf("taking bath");
break;
case 8:
printf("Reading news paper");
break;
case 9:
printf("Having Break fast");
break;
case 10:
printf("Going Class Room");
break;
default:
printf("Undergoing class");
}
getch();
}
No comments:
Post a Comment