Commit 8253cd1
committed
feat: Print elements of an integer array using a for loop
🧠 Logic:
- Declared and initialized an integer array `A` with values {11, 22, 33, 44, 55}.
- Used a standard `for` loop to iterate from index 0 to `A.length - 1`.
- Printed each element during iteration using `System.out.println(A[i])`.
Signed-off-by: Somesh diwan <[email protected]>1 parent 1fa1bf7 commit 8253cd1
1 file changed
+3
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 3 | + | |
| 4 | + | |
7 | 5 | | |
8 | 6 | | |
9 | | - | |
10 | | - | |
| 7 | + | |
11 | 8 | | |
12 | 9 | | |
13 | 10 | | |
| |||
0 commit comments