#include "library.h" void draw_poly(const double length, const int sides, const int count) { if (count == 0) return; draw_distance(length); turn_right_by_degrees(360.0 / sides); draw_poly(length, sides, count-1); } void draw_poly(const double length, const int sides) { draw_poly(length, sides, sides); } void draw_square(const double length) { draw_poly(length, 4); } void f(const int length, const int number) { if (number == 0) return; draw_square(length); turn_right_by_degrees(10); f(length, number - 1); } void main() { make_window(500, 500); set_pen_color(color::red); set_pen_width(3); f(100, 36); }