Midterm Exam 1 Review-Fall 2007: Turtle Boxes
Back to Midterm Exam 1 Review-Fall 2007
Ask your questions here...
Does this make all the boxes? mine only made 4
jk guys jk
public class TurtleBoxes {
public static void main(String [] args){
World world = new World();
Turtle you = new Turtle (world);
for ( int j = 0; j < 24; j++) {
for ( int i = 0; i < 4; i ++) {
you.forward(100);
you.turn(90);
}
you.turn(15);
}
}//method
}//class
Just a heads up, if you surround your code segments with <code> .. </code> tags then it will keep your formatting intact. -Joel Uthe
Link to this Page