Script:Adding a number range

This script adds a number range (1+2+3+4+5+...+n) using FOR...DO:

Explanation
For the first, we read n from the keyboard. Then, in order to make a number range,we'll use FOR...DO. So i will be for the first 1, then 2, then 3,... We only need to add i to the sum s and show it on the screen.

Explanation
For the first, we read n from the keyboard. Then, in order to make a number range,we'll use REPEAT...UNTIL. So i will be for the first 1, then 2, then 3,... and the REPEAT will break the cycle if i will become equal to n We only need to add i</tt> to the sum s</tt> and show it on the screen.