IDNLearn.com provides a platform for sharing and gaining valuable knowledge. Discover prompt and accurate answers from our community of experienced professionals.

Will give brainliest!!

Write a program that will add up the numbers 1 to 100 and then display the answer. The
calculation should be 1+2+3+4+5…+98+99+100.
You will need an extra variable called total which starts at 0.


Sagot :

Answer:

var total=0

repeat 100 times{

total = number + 1

print total

}

Explanation: