programmieren-3-c/v4.2/qinit.c

6 lines
113 B
C

void qinit(int arr[], int len) {
for (int i = 0; i < len; i++) {
arr[i] = (i + 1) * (i + 1);
}
}