HOW TO WRITE ALGORITHM TO add the number 1 to 100 and display the sum

1. START

2. Initialize a variable "sum" to 0
3. Start a loop from 1 to 100
4. Add each number from 1 to 100 to the "sum" variable
5. End the loop
6. Display the value of the "sum" variable
7. END

To write an algorithm to add the numbers from 1 to 100 and display the sum, you can follow these steps:

1. Declare a variable `sum` and set its initial value to 0.
2. Create a loop that iterates from 1 to 100.
3. Inside the loop, add the current number to the `sum` variable.
4. After the loop finishes, display the value of the `sum` variable.

Here's the algorithm written in a step-by-step format:

Step 1: Initialize the variable 'sum' to 0.
Step 2: Start a loop that iterates from 1 to 100.
Step 2.1: Within the loop, add the current number to the 'sum' variable.
Step 3: Outside the loop, display the value of the 'sum' variable.

Please note that depending on the programming language you are using, the actual code implementation may vary.