Question
a. Rewrite the following function so that it returns the same result, but does not increment the variable pt r. Your new program must not use any square brackets, but must use an integer variable to visit each double in the array. You may eliminate anyunneeded variable. b. Rewrite the following function so that it d
Question image 1Question image 2Question image 3Question image 4Question image 5