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.
In reply to Re^4: How do I write a program that calculates the sum of all numbers to a number, n?
by Tux
in thread How do I write a program that calculates the sum of all numbers to a number, n?
by fmny94
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |