Lesson goal: Sum of numbers ending in one
Previous: Diverging and converging series
| Next: Make it snow
Use a for loop to answer this question: What is the sum of all integers
between 50 and 350, that end in 1? (From: Artino, 1973, #7)
Now you try. Figure out how to run the for-loop over the integers between 50 and 350
that end in 1.
Type your code here:
Does your code work? Want to run it on your iPhone?
Here's your code:
- Use [Control]-[C] (Windows) or [⌘]-[C] (MacOS) to copy your code.
- Paste it using [Control]-[V] (Windows) or [⌘]-[V] (MacOS) into
- Then click the "Use on iPhone" button that you'll see.