javascript
Brief description  about Online courses   join in Online courses
View Thuto McMillan Motseothata 's Profile

Operators

I dont understand this question from the Operators Assignment

4.What would happen if I add the elements of 2 arrays with 5 elements each in them? Answer is that we will get a third array which also has 5 elements and it's 0th element will be the sum of 0th elements of the two arrays, 1st element will be the sum of 1st elements of two arrays and so on till 4th element (remember? index in an array starts from Zero). I want you to write a java programme which demonstrates the above scenario.
Asked by Thuto McMillan Motseothata | Jul 8, 2013 |  Reply now
Replies (1)
View java teacher 's Profile
You have to declare two arrays with 5 elements.
Then you have to add that two arrays such like each element has to add its corresponding element means 0th of 1st array with 0th of 2nd array, 1st element of 1st array with 1st element of 2nd array and so on..

Ok.
Jul 23, 2013