while (--n) => while (--n > 0) to match other examples