Commit eb5a1d1
committed
feat: Print numbers from 0 to 10 using a basic for loop
🧠 Logic:
- Initialize loop variable `i` to 0.
- Run the loop while `i <= 10`, incrementing `i` by 1 in each iteration.
- Print the current value of `i` on each loop cycle.
Signed-off-by: Somesh diwan <[email protected]>1 parent c598c6c commit eb5a1d1
1 file changed
+6
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
8 | 7 | | |
9 | | - | |
10 | | - | |
| 8 | + | |
0 commit comments