Coding challenge

Five positive integers starting with $a$ have an average of $b$. Write some code that will find the average of 5 consecutive integers that start with $b$. (Ans: it'll be 4 plus whatever you chose for $a$) (Ref: ACM 2014 10A, #10.)

Type your code here:


Lua reference

See your results here: