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
HOW TO WRITE ALGORITHM TO add the number 1 to 100 and display the sum
1 answer