beauty8411 beauty8411 23-12-2022 Engineering Answered consider an integer array, nums, which has been declared and initialized with one or more integer values. which of the following code segments updates nums so that each element contains the square of its original value?