Ad
  • Default User Avatar

    Its not recalculating the average on each iteration. In this case, for doesnt has any braces
    so is executing the first line only. This solution has "stetic" problems with tabs but is correct.