0

Hi guys,

I'm having some trouble with my Java homework, and I was wondering if any of you could point me in the right direction. I need to find a loop that will add all the whole numbers from 1 to 1000 and print only the total. I've been spending much of time working with a for loop, but I'm not sure if that's the right loop to be using.

Any help would be greatly appreciated.

Thanks