## Some for loop tests

In the code below, fill in the blanks so that the code’s resulting output is as follows:

```3
4
5
6
7
```
```for (int i____; ____; ____){ println(i); }```
```// ANSWERS // for (int i=3; i<=7; i++){ println(i); }   // OR   for (int i=3; i<8; i++){ println(i); }```

———————————————————-
In the code below, fill in the blanks so that the code’s resulting output is as follows:

```3
4
5
6
7
```
```for (int i=0; i<5; i++){ println(____); }```
```// ANSWER // for (int i=0; i<5; i++){ println(i+3); }```

———————————————————-
In the code below, fill in the blanks so that the code’s resulting output is as follows:

``` 3
2
1
0
-1
-2
-3
```
```for (int i___; i___; i___){ println(i); }```
```// ANSWER for (int i=3; i>=-3; i--){ println(i); }```

———————————————————-
In the code below, fill in the blanks so that the code’s resulting output is as follows (make sure to read the code and its requested output carefully!):

``` 3
2
1
0
-1
-2
-3
```
```for (int i=0; i<=6; i++){ println(____); }```
```// ANSWER for (int i=0; i<=6; i++){ println(3-i); }```

———————————————————-
The following code draws a series of ellipses. Please answer the following questions:

Q: What is the visual effect of changing the value of the variable A? What might be a better name for A?
Q: What is the visual effect of changing the value of the variable B? What might be a better name for B?
Q: What is the visual effect of changing the value of the variable C? What might be a better name for C?

```float A = 10; float B = 10; float C = 10; float D = 10; float E = 10; float F = 10; for (int i=0; i<a; i++){ float x = B + C*i; ellipse(x,D,E,F); }```