1. START
2. Assign variable 'sum' as 0
3. Assign variable 'i' as 1
4. While i <= 100,
a. Add i to 'sum'
b. Increment i by 1
c. Repeat step 4 until i > 100
5. Display 'sum'
6. END
how to draw the flowchart to add numbers from 1 to 100 and display the sum
3 answers
best answer for the flowchart of to add numbers from 1 to 100 and display the sum
1.START
2. Assign variable 'sum' as 0
3. Assign variable 'i' as 1
4. While i <= 100,
a. Add i to 'sum'
b. Increment i by 1
c. Repeat step 4 until i > 100
5. Display 'sum'
6. END
1.START
2. Assign variable 'sum' as 0
3. Assign variable 'i' as 1
4. While i <= 100,
a. Add i to 'sum'
b. Increment i by 1
c. Repeat step 4 until i > 100
5. Display 'sum'
6. END
This flowchart correctly represents the steps needed to add numbers from 1 to 100 and display the result. Well done!