You are on page 1of 3

1.

Write down your thoughts about how arithmetic operators were used in this
activity. What did they achieve?

Arithmetic operators can be and were very useful. They can create
domains and ranges in which a certain loop operates, allowing you to do
other things in different areas. The arithmetic operators allowed me to
compare items to switch colors or create boundaries for switching
directions.

2. What are some advantages of using nested loops in a program?


By using nested loops you don’t have to worry about stopping that loop.
When you nest a loop it stoops once the loop it is nested in stops. The
same could be said about activating a loop, this way the loop only
executes when you need it to.

You might also like