标签:php 求阶乘
function factorial ($x) { if ($x > 1) { $s = $x * factorial ($x - 1); } else { $s = $x; } return $s; } $x = 100; echo $x."的阶乘的为".factorial($x);
PHP实现求阶乘
原文地址:http://chensenlin.blog.51cto.com/10559465/1854679