8.10. Check Yourself

Before you keep reading...

Runestone Academy can only continue if we get support from individuals like you. As a student you are well aware of the high cost of textbooks. Our mission is to provide great books to you for free, but we ask that you consider a $10 donation, more if you can or less if $10 is a burden.

#include <CTurtle.hpp>
namespace ct = cturtle;

int main() {
    ct::TurtleScreen scr;
    ct::Turtle turtle(scr);

    for(int i = 0; i < 5; i++){
        turtle.forward(50);
        turtle.right(144);
    }

    scr.bye();
    return 0;
}
You have attempted 1 of 5 activities on this page