Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
11
Task/Ackermann-function/FBSL/ackermann-function-2.fbsl
Normal file
11
Task/Ackermann-function/FBSL/ackermann-function-2.fbsl
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
int Ackermann(int m, int n)
|
||||
{
|
||||
if (!m) return n + 1;
|
||||
if (!n) return Ackermann(m - 1, 1);
|
||||
return Ackermann(m - 1, Ackermann(m, n - 1));
|
||||
}
|
||||
|
||||
int main(int m, int n)
|
||||
{
|
||||
return Ackermann(m, n);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue