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.