18
Jan

php faktöriyel hesaplama

   Posted by: Muhammed YÜRÜRDURMAZ   in Uncategorized

öğrencilere ve yeni öğrenenlere basit bir örnek

<?
function faktor($i){
if($i != 0) return $i * faktor($i-1);
return 1;
}
echo faktor(5);?>

Denemek için http://codepad.org/EMjpGZ4y

Bookmark and Share
Tags: , ,

Tags: , ,

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

İsminiz
e-Mail (Burada yayınlanmayacak endişelenmeyin)
Web Siteniz
Yorumunuz

Switch to our mobile site