#include <stdio.h>

int main(){
   int n1=0,n2=1,i,n;
   printf("enter the value of n \n");
   scanf("%d",&n);
   
   printf("%d",n1);
   
   for(i=1;i<=(n-1);i++) {
       printf("%d \n",n2);
       int n=n1+n2;
       n1=n2;
       n2=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: