Commit 8f41468
committed
feat: Display day name based on numeric input (1–7) using conditional statements
🧠 Logic:
- Takes an integer input from user.
- Matches input (1–7) to corresponding weekday:
- 1 → Monday, 2 → Tuesday, ..., 7 → Sunday.
- If input is outside 1–7, prints "Invalid Day".
Signed-off-by: Somesh diwan <[email protected]>1 parent 4c60a93 commit 8f41468
File tree
1 file changed
+9
-18
lines changed- Section7ConditionalStatements/src
1 file changed
+9
-18
lines changedLines changed: 9 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | | - | |
14 | | - | |
| 12 | + | |
15 | 13 | | |
16 | 14 | | |
17 | | - | |
18 | | - | |
| 15 | + | |
19 | 16 | | |
20 | 17 | | |
21 | | - | |
22 | | - | |
| 18 | + | |
23 | 19 | | |
24 | 20 | | |
25 | | - | |
26 | | - | |
| 21 | + | |
27 | 22 | | |
28 | 23 | | |
29 | | - | |
30 | | - | |
| 24 | + | |
31 | 25 | | |
32 | 26 | | |
33 | | - | |
34 | | - | |
| 27 | + | |
35 | 28 | | |
36 | 29 | | |
37 | | - | |
38 | | - | |
| 30 | + | |
39 | 31 | | |
40 | 32 | | |
41 | | - | |
42 | | - | |
| 33 | + | |
43 | 34 | | |
44 | 35 | | |
45 | 36 | | |
| |||
0 commit comments