i = start; while (i <= end) { . . . i++; }
for(i = start; i <= end; i++)
int product = 1; for (int i = 1; i <= n; i++) product = product * i;