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
how to write pseudocode add the number from 1 to 100 and display the sum
1 answer