#include <stdio.h>
int fibo(int n) {
    if (n==0) return 0;
    else if(n==1) return 1;
    else return fibo(n-1)+fibo(n-2);
}

int main() {
    int n;
    scanf("%d",&n);
    for(int i=0; i<n; i++) {
        printf("%d\n",fibo(i));
    }
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: