Faktöriyel $fact(N)
Kod:
fact %. = $1 - 1 | return $calc($regsubex($str(*,%.),/(?<=\*)|(?=\*)/g,\n)) Kullanımı: //echo -a $fact(N) Örnek: Kod:
//echo -a $fact(5) - 120 |
All times are GMT +3. The time now is 23:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.