I am trying to format the results of my program into five different columns of an equal number. For example, my program generates 50 random numbers and I am trying to print them out in sets of ten. Here is my code from my main function. Anyone's help would be greatly appreciated
int main(void)
{
int grades[50];
float rank[50]={0};
int x, anotherrecord;
do
{
randFill(grades);
sortDescend(grades);
rankCalc(grades, rank);
for(x=0;x<50;x++)
{
printf("%d - Rank:",grades[x]);
printf("%3.1f\n", rank[x]);
}
printf("\n Press 1 to generate another random sample: ");
scanf("%d", &anotherrecord);
}
while (anotherrecord == 1);
return 0;
}