#include <stdio.h>
#include <stdlib.h>
int main() {
    int k = 32;
    int *A = malloc(k * sizeof(int));
    *(A + 0) = 1;
    *(A + 1) = 1;
    int n = 2;
    while (n < k) {
        *(A + n) = *(A + n-1) + *(A + n-2);
        n++;
    }
    n = 0;
    while (n < k) {
        printf("%d,",*(A + n));
        n++;
    }
    free(A);
    return 0;
}

Embed on website

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