I have set of 5 integers I want to be declare as array elements, and I want each following element in the array to preform arithmetic, say simply subtract 20 from each of them, while the first is set to 100.
So the 5th and final element would be set to 20..
@chriscpp I was actually referring to a way to make each elements in the array more variable.
say I have an alternating variable that would change each value of the array.
So if a variables value is 2, each array will divide the previous by 2. If it changes to 3, each element in the array would divide the previous by 3.
Or add, multiply whatever.
The idea is to set the array elements to certain possible X values for the f(x)
Also: is there some way to collect each value of the array and set the sum of each to another variable?