learning "for Loop"
in
Programming Questions
•
1 year ago
The following is work I did for a tutorial which gives me an error code saying
can't find anything named "i". Can anyone help me figure out what I did wrong?
size(480, 120);
smooth();
strokeWeight(8);
for (int i = 20; i < 400; i += 60); {
line(i, 40, i + 60, 80);
}
Thanks!
size(480, 120);
smooth();
strokeWeight(8);
for (int i = 20; i < 400; i += 60); {
line(i, 40, i + 60, 80);
}
Thanks!
1