HOW TO drow algorithm

TO add the number 1 to 100 and display the sum

1. Set a variable "sum" to 0.

2. Create a loop to iterate through the numbers 1 to 100.
3. For each iteration, add the current number to the "sum" variable.
4. After the loop is complete, display the value of "sum" to the user.

Pseudo code:

sum = 0
for i in range(1,101):
sum += i
print(sum)

Sure, here's a step-by-step guide on how to write an algorithm to add numbers from 1 to 100 and display the sum:

1. Initialize a variable `sum` to 0.
2. Set up a loop to repeat 100 times, starting from 1 and increasing by 1 on each iteration.
- For each iteration of the loop, perform the following steps:
- Add the current number to the `sum` variable.
3. After the loop finishes, display the value of `sum`.

Here's the algorithm in pseudocode:

```
1. Set sum = 0
2. For i = 1 to 100
2.1. sum = sum + i
3. Display sum
```

This algorithm will add the numbers from 1 to 100 and display the sum.