Exercise : for loop practice

continued on the next slide...

Exercise - fill in a table

We want to produce the following output:

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

Fill in the table below indicating how many stars appear on each line of output.

Line Stars
1
7
2
5
3
3
4
1

continued on the next slide...

Exercise - complete the expression

We need an expression for the number of stars on each line of this form:

multiplier * line + constant