Use a for loop to determine the sum of the first ten even terms in the series 5k3 (k=2, 4, 6, ….)
10 views (last 30 days)
James Tursa on 20 Oct 2022
Edited: James Tursa on 20 Oct 2022
You are summing all the terms with 2:10. For the "even" terms you need to skip the odd ones, so the range would be 2:2:something (the middle 2 means every other value starting at 2). You just need to figure out what the "something" value is in order to get ten even terms.