in reply to How do I write a program that calculates the sum of all numbers to a number, n?

$n = 13; $sum = 0; $sum += $n-- while $n; print $sum;; 91

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked
  • Comment on Re: How do I write a program that calculates the sum of all numbers to a number, n?
  • Download Code