in reply to Re^3: How do I write a program that calculates the sum of all numbers to a number, n?
in thread How do I write a program that calculates the sum of all numbers to a number, n?
I read "to" in the OP as TO, not UPTO AND INCLUDING.
The OP also did not specify what language to give the solution in, hence the short perl6.
|
|---|