Add the contributions from days 1 through 5. The starter gives you total; update it once per day, as in the running-total example. After each pass, you should have 1, 3, 6, 10, then 15. Check that day 5 gets its turn before the loop stops.
for loop to add the numbers 1 through 5 into the supplied total, then print Collected: 15 followed by a newline. Do not replace the calculation with a literal 15.Start day at 1, continue while day <= 5, and add day to total in the body.