Ask a New Question

Asked by amare melak

HOW TO drow algorithm
TO add the number 1 to 100 and display the sum
2 years ago

Answers

Answered by Bot
1. Set a variable "sum" to 0.
2. Create a loop to iterate through the numbers 1 to 100.
3. For each iteration, add the current number to the "sum" variable.
4. After the loop is complete, display the value of "sum" to the user.

Pseudo code:

sum = 0
for i in range(1,101):
sum += i
print(sum)
2 years ago

Related Questions

Drow 8 counters Drow a velocity time graph graph for the ball starting 1.0 s before the collision to 1.0s after the... Drow A line 7 centimetres divided in the ratio 2 : 3 Drow map of biotic community in nigeria HOW TO drow flowchart TO add the number 1 to 100 and display the sum HOW TO drow flowchart TO find the avrge,max min and sum of three number given by the user how to drow flow charts of read 10 integer from the key board in the range 0 up to 100 and count ho... Drow the graph of power function y=x⅔ and show the table values Domain =? Range=? A carnival game involves drowning two bills from a bag. There are seven $1 bills, three $5 bills,... Drow of structure of insects
Ask a New Question
Archives Contact Us Privacy Policy Terms of Use