I have a strange request, but I just need to output the array. I wrote the code, but my teacher asked me to also print the input array. I don't understand how to implement this correctly in my case. Here is my code :
#include <stdio.h>
int main() {
    float a[15], q = 1.5;
    a[0] = 2.0;
    for (int i = 1; i < 15; i++) {
        a[i] = a[i - 1] * q;
    }
    for (int i = 0; i < 15; i++) {
        printf("%i  %4.2f\n", i, a[i]);
    }
}
 
    