Outputting variables on a line

Stuck on formatting an output. I want to list 6-99 on the screen, looking something like this:

99 98 97 96 95 94 93 92 91 90
89 88 87 86 85 84 83 82 81 80
and so on down to 6.

So far I am only able to print one value per line.

This is what I have

I have defined x as integer x=99 before the loop

then I have a loop to send the output:

until [[ x -eq 5 ]] ; do
print "$x"
x=x-1
done

I was thinking I may need to add another loop within my first loop, I have been messing around but I am just stumped.

use echo -n "$x "
or echo "$x \c"
or printf "%d " $x

to keep printing on a line. After you go as far as you want

echo ""

creates a line feed (new line)

Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

Thank You.

The UNIX and Linux Forums.