Created
October 16, 2013 13:24
-
-
Save kazua/7007671 to your computer and use it in GitHub Desktop.
Project Euler Problem 15(PHP)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| //write kazua | |
| $n = 20; | |
| echo array_product(range(1, 2 * $n)) / pow(array_product(range(1, $n)), 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment