Lesson goal: Sum of numbers ending in one

Previous: Diverging and converging series | Home | 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:

See your results here:

Show a friend, family member, or teacher what you've done!

Here is a share link to your code:

Does your code work? Want to run it on your iPhone?

Here's your code:

  1. Use [Control]-[C] (Windows) or [⌘]-[C] (MacOS) to copy your code.

  2. Paste it using [Control]-[V] (Windows) or [⌘]-[V] (MacOS) into this page

  3. Then click the "Use on iPhone" button that you'll see.