in reply to Re^2: 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?
We told you guys; it’s fun! Though I’m not positive the answer shouldn’t have been 91 instead… to v through.
~>perl6 > $n = 13 13 > say [+] ^$n 78
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How do I write a program that calculates the sum of all numbers to a number, n?
by BrowserUk (Patriarch) on Feb 24, 2015 at 21:57 UTC | |
by Your Mother (Archbishop) on Feb 24, 2015 at 22:03 UTC | |
by raiph (Deacon) on Feb 25, 2015 at 01:23 UTC | |
by Tux (Canon) on Feb 25, 2015 at 11:20 UTC | |
|
Re^4: How do I write a program that calculates the sum of all numbers to a number, n?
by Tux (Canon) on Feb 25, 2015 at 07:18 UTC |