#include <stdio.h>
#include <stdlib.h>
#include <locale.h>

 main(){
 	setlocale(LC_ALL, "Portuguese");
 	
char *c;
int a = 1, b = 1,n, i;

printf("Digite o N-ésimo termo: ");
scanf("%d", &n);
printf("\n");

for(i=0;i<n;i++){
   if(i % 2 == 0){
       printf("%d ", a);
         a += b;
    }else {
        printf("%d", b);
          b += a;
    }
}
fflush(stdin);
}

Embed on website

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