This code would print out the numbers from 0 to 21. The variable i is initialized to be 0. The code then loops while i is less than 22. Each time the code loops, it increments (adds 1) to the variable i.
for (int i=0; i< 22; i++)
{
println(i);
}
Write a program that draws 7 vertical stripes of points using nested for loops hint:
for (int x=?; x< ?; x+= ?)
{
for (int y = ?; y<?; y+=?)
{
point(x,y);
}
}
your will need to figure out the start, start and increment amount for each loop
Now make 14 vertical stripes
Now make 3 vertical stripes and 18 horizontal stripes