#include #include int main() { #define MAXSIZE 30 //size of the list int num[MAXSIZE]; // array where to put list values //initialize num array elements to 0 for (int i = 0; i < MAXSIZE; i++) num[i] = 0; //initialize first three elements of the list num[0] = num[1] = num[2] = 1; //create the list in num array elements for (int i = 3; i < MAXSIZE; i++) { num[i] = num[i - 1] + num[i - 3]; } //print the list, that is the values that are in the num array printf("Serie is:\n"); for (int i = 0; i < MAXSIZE; i++) { printf("%5d\n", num[i]); } // exit the program with return value 0 ==> program terminated with success exit(0); }