View Single Post
Join Date: Oct 2008
Posts: 118
Reputation: chococrack is on a distinguished road 
Solved Threads: 14
chococrack's Avatar
chococrack chococrack is offline Offline
Junior Poster

Re: Average Program using an Array

 
0
  #5
Dec 3rd, 2008
  1. define total = 0
  2. define array[n] = {n1, n2, n3, n4, ...}
  3. for 0 to n - 1
  4. total = total + array[n]
  5. print 'Average: '
  6. print total / n
  7. end
I would love to change the world, but they won't give me the source code
Reply With Quote