Here's some instructions for my project:

Output the elements of the array in 10 columns that are 6 spaces wide. Each row in the output will have 10 values. It is a double array, and the doubles will be printed out to only 2 decimal places. Heres my code

```
#include <stdio.h>
#include <stdlib.h>

int main() {

    double array[100];

    for (int i = 0; i < 100; i++) {
        array[i] = (double)(rand() % 100 + 1) / 2.0;

        printf("%.2lf      \n", array[i]);

        if ( i == 9 || i == 19 || i == 29 || i == 39 || i == 49 || i == 59 || i == 69 || i == 79 || i == 89 || i == 99) {
            printf("\n");
        }

    }
}

```

All this seems to do is print one column with space in between every 10, not what I need. How would I go about doing a multiple column output in this situation? Thanks