Define two arrays first and one by one add the values of both arrays' cells using iterative loops. Try this logic and write code. If stuck anywhere then please do ask here again.
You should start by carefully defining the problem. What does it mean to add two arrays? Is the result another array or is it a single value? Do you only need to support one-dimensional arrays? Are the two input arrays required to be the same size?
Comment