ok say i have an array of numbers like this:
and i want to print them out on the screen like this:Code:double num[] = {15.5, 17.2, 17.4, 15.2, 15.3, 17.8, 17.5}
how do i format the output so that i can print them out neatly 3 numbers per line, then another line underneath??Code:for(i = 1; i<n; ++i) printf("%6.1lf\n", num[i]);
For Eg;
Code:15.5 17.2 17.4