Commit b0af4d1
committed
feat: Add conditional check for determining if a number is positive or negative
🧠 Logic:
- Initializes an integer `n` with a negative value.
- Uses an if-else condition to print "Positive" if `n >= 0`, otherwise prints "Negative".
Signed-off-by: Somesh diwan <[email protected]>1 parent e5840ab commit b0af4d1
File tree
1 file changed
+2
-3
lines changed- Section7ConditionalStatements/src
1 file changed
+2
-3
lines changedLines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | | - | |
| 11 | + | |
0 commit comments