#include <stdio.h>

int main() {
    int n;
    printf("enter n (n>2):");
    scanf("%d",&n);
    
    int fib[n];
    fib[0]=0;
    fib[1]=1;
    
    for(int i=2;i<n;i++) {
        fib[i]=fib[i-1] + fib[i-2];
        printf("%d\n",fib[i]);
    }
    
    printf("\n");
    
    return 0;
}

Embed on website

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