Commit 2214964
committed
feat: Print all odd numbers from 1 to 100 using for loop
🧮 Logic:
- Loop from 1 to 100
- Use condition `value % 2 != 0` to filter and print odd numbers only.
Signed-off-by: Somesh diwan <[email protected]>1 parent 17ed4b9 commit 2214964
1 file changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
| 1 | + | |
| 2 | + | |
5 | 3 | | |
6 | 4 | | |
| 5 | + | |
7 | 6 | | |
8 | | - | |
9 | | - | |
10 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
0 commit comments