Sub ValueSum()
Like if gap is between 1 to 5 the sum is = 1+2+3+4+5=15
Sum is shown to the user.
Would really need it to be done fast, and would be really grateful for it.
Sub ValueSum()
Like if gap is between 1 to 5 the sum is = 1+2+3+4+5=15
Sum is shown to the user.
Would really need it to be done fast, and would be really grateful for it.
Anybody? That sucks if i can't do it in time. :D
Try the below code in standard module
Please Login or Register to view this content.
If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
Mark your thread as Solved
If the suggestion helps you, then Click *below to Add Reputation
How about:
Please Login or Register to view this content.
Gary's Student
Hopefully this isn't giving too much away, but this has been asked many times throughout history. The story of a 10 year old Gauss is interesting (assuming it is true).
1st step in a problem like this is to understand the math behind the problem.
http://www.ugrad.math.ubc.ca/coursed...tion/sums.html
http://www.cut-the-knot.org/Curricul...ummation.shtml
From there, programming a computer to sum the first n integers should be easy.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks