Home / Expert Answers / Computer Science / create-two-array-of-same-39-a-39-and-39-b-39-of-same-length-add-element-wise-addition-of-two-array-l-pa338

(Solved): create two array of same 'a' and 'b' of same length. Add element wise addition of two array, like fi ...



create two array of same 'a' and 'b' of same length. Add element wise addition of two array, like first elemnt from a will be add to first element from array b. Do this using for loop.
Hint Create array c of same length as a and b, inintialize it to 0. Iterate over a and b and indexed element of array a and b and add result two number in array c.

-----------------

thank you



We have an Answer from Expert

View Expert Answer

Expert Answer


Sure! Here's the code in Python that creates two arrays 'a' and 'b' of the same length, performs element-wise addition of the arrays using a for loop,
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe