-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path03_greeting.c
46 lines (41 loc) · 1017 Bytes
/
03_greeting.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// // WAP which takes the day number of a week and displays a unique greeting message for the day.
// // Header Files
#include <stdio.h>
#include <conio.h>
// // Main Function Start
int main()
{
int dayNumber;
printf("\nEnter Any Day Number of the Week => ");
scanf("%d", &dayNumber);
switch (dayNumber)
{
case 2:
printf("Monday, Work Mode On...");
break;
case 3:
printf("Tuesday, Work Going On...");
break;
case 4:
printf("Wednesday, Work Still Going On...");
break;
case 5:
printf("Thursday, Felling Tired Due to Work...");
break;
case 6:
printf("Friday, Litte Hope For Sunday....");
break;
case 7:
printf("Saturday, Excited For Sunday...");
break;
case 1:
printf("Sunday, Chill Mode On...");
break;
default:
printf("!!! Invalid Input, Day Does Not Exist...");
}
printf("\n");
getch();
return 0;
}
// // Main Function End