18
Jan
php faktöriyel hesaplama
öğrencilere ve yeni öğrenenlere basit bir örnek
<?php
function faktor($i){
if($i != 0) return $i * faktor($i-1);
return 1;
}
echo faktor(5);?>
Denemek için http://codepad.org/EMjpGZ4y
Tags: Örnek, Faktöriyel, php
This entry was posted
on Monday, January 18th, 2010 at 17:13 and is filed under Uncategorized.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
Cevap veya Yorum Yaz