You can buy 9 cans for green beans at the village market for $4.12. You can buy 7 of the same green beans at Sam’s club for $4.22. Which place is the better buy?
Write a loop that sets each array element to the sum of itself and the next element, except for the last element which stays the same. be careful not to index beyond the last element. ex: initial scores: 10, 20, 30, 40 scores after the loop: 30, 50, 70, 40 the first element is 30 […]