wtd wrote:
Work through the problem without writing code.
You get a number from the user.
You then loop from that number to that number multiplied by two.
Each time through that loop you add that value to some accumulator.
Or, you could create a recursive method that would do this quite nicely.
Wait nvm. I don't think you clearly understand it *sorry if I'm mistaken).
But the user enters a number "n".
And I basically multiply the number by 2 which is for example 6...12.
Then i take ALL the numbers in between including the 2 numbers and add themtogether.
S it would be 6 + 7 + 8 + 9 + 10 + 11 + 12
And then i need to get the value of all of those numbers.
~Caceres