#include <stdio.h>
#include <stdlib.h>
int main() {
int *list = malloc(8 * sizeof(int));
*(list+0)=1;
*(list+1)=1;
int k=2;
while (k < 8) {
*(list+k)=*(list+(k-1))+*(list+(k-2));
k++;
}
k=0;
while (k < 8) {
printf("%d,",*(list+k));
k++;
}
free(list);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: