Commit a7fc0d5
committed
feat: Print numbers from 10 to 1 using reverse for loop
🧠 Logic:
- Initialize loop variable `i` to 10.
- Continue looping while `i > 0`, decrementing `i` in each iteration.
- Print the current value of `i` to display numbers in descending order.
Signed-off-by: Somesh diwan <[email protected]>1 parent eb5a1d1 commit a7fc0d5
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
0 commit comments