Answer:

Change the FOR loop to:

FOR LINE = 10 to 1 STEP -1

Ten Stars at the Top

Here is the program with this modification:

' Do the loop body ten times
FOR LINE = 10 to 1 STEP -1
   
  LET  NUM = LINE
  +---------------------------------+
  |                                 |
  |  Print NUM stars in a new row   |
  |                                 |
  +---------------------------------+
NEXT LINE
'
END

This is what it prints:

**********
*********
********
*******
******
*****
****
***
**
*

Now say that you wanted to print the following:

*               <-- 1 star
***             <-- 3 stars
*****           <-- 5 stars
*******         <-- 7 stars
*********       <-- 9 stars

QUESTION 7:

Fill in the blanks of the FOR statement so that you get this pattern.

FOR  LINE = ______ TO ______ STEP ______