Hi there,
Can someone explain a few things for me:
1. What is an arbitrary sequence?
2. How would I calculate the average of an arbitrary sequence?
3. How would I use a value (for example, -1) to indicate the end of an arbitrary sequence?
Thanks in advance
How could I write a program that would calculate the average of the series 5, 0, -5, 14, 27, 18, 1803, -333, for example.
average as in sum and divide?
To end the sequence you could use if statement.
Last edited on