how to write pseudocode add the number from 1 to 100 and display the sum
1. Initialize a variable called "sum" to 0
2. Create a loop that will iterate from 1 to 100
3. Within the loop, add the current number to the "sum" variable
4. After the loop is finished, display the value of the "sum" variable
Pseudocode:
sum = 0
for i = 1 to 100
sum = sum + i
end for
display sum
To write pseudocode for adding numbers from 1 to 100 and displaying the sum, you can follow these steps:
1. Initialize a variable "sum" to 0.
2. Use a loop to iterate from 1 to 100.
3. Inside the loop, add the current number to the "sum".
4. After the loop completes, display the value of "sum".
Here is the pseudocode:
```
Set sum = 0
For i = 1 to 100
Set sum = sum + i
End For
Display sum
```
Please note that pseudocode is not a specific programming language, but a way to represent a solution algorithm in a more human-readable form. The actual implementation will depend on the programming language you are using.