Commit f52f170
committed
feat: Add two integer arrays element-wise and display the result
🧠 Logic:
- Reads 5 elements each into arrays A and B using Scanner.
- Adds corresponding elements from A and B, stores result in array C.
- Iterates over array C to print the sum of A and B element-wise.
Signed-off-by: Somesh diwan <[email protected]>1 parent c4adfc6 commit f52f170
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
0 commit comments