Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -1,5 +1,4 @@
|
|||
rascal>factorial_iter(10)
|
||||
int: 3628800
|
||||
|
||||
rascal>factorial_iter2(10)
|
||||
int: 3628800
|
||||
public int factorial_rec(int n){
|
||||
if(n>1) return n*factorial_rec(n-1);
|
||||
else return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue