You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tlang/source/tlang/testing/simple_function_recursion_f...

13 lines
172 B
Raku

module simple_function_recursion_factorial;
ubyte factorial(ubyte i)
{
if(i == 0)
{
return 1;
}
else
{
return i*factorial(i-1);
}
}