create a number function called sum. function sum will accetp a single integer. asume we call this int parameter position, then the value position will be used to calculate the sum of elements in myIntArray size 1000, whose indices are multiples of position, that is their user passes the argument 5 to the int parameter position . you will need to fine the sum of myIntArray[0] +myIntArray[5] and so forth
Comments
You're welcome. We are glad to be helpful. If you really liked our service please press like-button beside answer field. Thank you!
I am very exited to see my question solved. i am highly appreciated thanks respects
Leave a comment