Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WANTFIX]: Recursion doen't work! #1

Open
icoder-new opened this issue Aug 27, 2022 · 2 comments
Open

[WANTFIX]: Recursion doen't work! #1

icoder-new opened this issue Aug 27, 2022 · 2 comments

Comments

@icoder-new
Copy link
Contributor

Hey, @ilyas-kalandar !
In trying to run programming with recursion, the result of running program was "segmentation fault"! Please see here for the screenshot!
photo_2022-08-27_20-09-17
The Project Rita is great. However, it has minuses. Please fix this error.

@ilyas-kalandar
Copy link
Owner

Hello, @icoder-new

Please provide a code which raises this exception.

Thanks.

@icoder-new
Copy link
Contributor Author

Here is code:

fun fibonacci(n) {
    if(n == 1) {
        return 1;
    }
    if (n == 2) {
        return 1;
    }
    return fibonacci(n) + fibonacci(n-1);
}

fibonacci(10);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants