1. Start: Begin the flowchart with the "Start" symbol.
2. Initialize variables: Create a rectangle with "Initialize variables" written inside. Create a variable "sum" and set it to zero.
3. Loop: Draw a diamond shape with "Loop" written inside. The condition for the loop is that the variable "i" should be less than or equal to 100.
4. Add 1: Draw a rectangle with "Add 1" written inside. Add 1 to the variable "i".
5. Add current number to sum: Draw a rectangle with "Add current number to sum" written inside. Add the current value of "i" to the variable "sum".
6. End loop: Draw a line from Step 3 to Step 4 with "Yes" written above it. Add "No" above the line that connects back to the loop diamond symbol.
7. Display sum: Draw a rectangle with "Display sum" written inside. Display the value of the variable "sum".
8. End: Draw the "End" symbol at the bottom of the flowchart.
The completed flowchart should look like this:
Start
|
V
Initialize variables
|
V
Loop (i<=100) --Yes--> Add 1 --> Add current number to sum
^ | |
| V |
------No------- |
V
Display sum
|
V
End
HOW TO drow flowchart
TO add the number 1 to 100 and display the sum
1 answer