int source[8] = {0, 1, 2, 3, 4, 5, 6, 7};
int dest[8];
int calculate(int source) { return source * source; }
void loop(int *source, int *dest, int N) {
for (int k = 0; k < N; k++) { int a = 10; if (source[k] != 0) dest[k] = calculate(source[k]) + 10; } } int main() { loop(source, dest, 8); return 0; }