let start = 0; let total = 0; let i = 1; while (i <= 50000) { total += i; i += 1; } say "Sum of 1 to 50000 =", total;