Skip to content

Instantly share code, notes, and snippets.

@kazua
Created October 16, 2013 13:24
Show Gist options
  • Save kazua/7007671 to your computer and use it in GitHub Desktop.
Save kazua/7007671 to your computer and use it in GitHub Desktop.
Project Euler Problem 15(PHP)
<?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