Jump to content

How to Add Consecutive Integers from 1 to 100: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

22 March 2023

  • curprev 13:3013:30, 22 March 2023 Lukegao1 talk contribs 1,347 bytes +1,347 创建页面,内容为“There are a few different methods you could use to add consecutive integers from 1 to 100. Here are three possible approaches: 1. Use the formula for the sum of an arithmetic series: The sum of the first n positive integers can be found using the formula: sum = n * (n + 1) / 2 For the sum of integers from 1 to 100, we have n = 100, so we can plug this into the formula and get: sum = 100 * (100 + 1) / 2 sum = 50 * 101 sum = 5050 2. Use a loop in a programming…”