I am writing a program and I can not figure how to get it to list only 5 entries per line with one space in between. I am trying to get the program to count by .379 and list only 5 entries per line. This is how I have my code for this section:
for (k=1; k<=1000; k+=.379)
{
printf("%9.3f", k);
}
The rest of the code with this runs, but it lists the numbers continuously and separates numbers at the end of lines.
Any thoughts would be helpful