skip to main
|
skip to sidebar
Home
Disclaimer
Privacy Policy
Home
Privacy Policy
Disclaimer
Web Archive
Home
Drupal
PHP
Linux
Share
Monday, July 16, 2012
Find factorial using PHP
2:28 PM
No comments
Email This
BlogThis!
Share to X
Share to Facebook
Function to find the factorial of the given value
function factorial($val){
if($val == 1){
return 1;
}
else {
return $val*factorial($val-1);
}
}
Posted in:
PHP
Newer Post
Older Post
Home
0 comments:
Post a Comment
Enter your email address:
Popular Posts
Categories
Apache
(3)
Blogger
(2)
Brightcove
(2)
CSS
(1)
Drupal
(7)
Free Software
(1)
Java Script
(2)
jquery
(5)
linkWithin
(1)
Linux
(4)
MySQL
(2)
Open Source
(2)
PHP
(10)
SVN
(1)
Ubuntu
(4)
Version Control System
(1)
Video Cloud
(1)
Wordpress
(1)
Powered by
Blogger
.
Design by
Free WordPress Themes
| Bloggerized by
Lasantha
-
Premium Blogger Themes
| Maintained by
Web Themes
0 comments:
Post a Comment