Commit dc39116
committed
feat: Add age-based check to determine if a person is young
🧠 Logic:
- Prompts user to enter the person's age.
- Checks if age lies within the range 14 to 55 (inclusive).
- If true, prints "Person is young".
- Else, prints "Person is not a young".
Signed-off-by: Somesh diwan <[email protected]>1 parent 28a3a1b commit dc39116
File tree
1 file changed
+8
-9
lines changed- Section7ConditionalStatements/src
1 file changed
+8
-9
lines changedLines changed: 8 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | | - | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
24 | | - | |
| 23 | + | |
0 commit comments