Return the sum of all integer numbers from up to the number

Asked

Viewed 12 times

0

i have the variableNumber = 10 and I have to return a sum of all numbers from 1 to the numberNumber, but I have no idea how to do this, someone can help?

for example:

numeroInteiro = 10

1+2+3+4+5+6+7+8+9+10

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.