Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.
function factorial_recursion(n) {
if(n!=1) n * factorial_recursion;
}
function factorial_iteration(n) {
a = n;
while(n!=1) {
n = n -1;
a *= n;
}
return a;
}
function factorial_recursion(n) {
if(n!=1) n = n * factorial_recursion(n-1);
return n;
}
function factorial_recursion(n) {
if(n==0) return 1;
if(n!=1) n * factorial_recursion(n-1);
return n;
}
and :function factorial_iteration(n) {
if(n==0) return 1;
a = n;
while(n!=1) {
n = n -1;
a *= n;
}
return a;
}
see this example
http://javascript.about.com/library/blrecursive.htm
Iteration is basically a for loop or a while loop
http://ajaxian.com/archives/how-many-ways-can-you-iterate-over-an-array-in-javascript
http://www.w3schools.com/JS/js_loop_for_in.asp