Department of Computer Science | Institute of Theoretical Computer Science | CADMO

Theory of Combinatorial Algorithms

Prof. Emo Welzl and Prof. Bernd Gärtner

// Informatik - Serie 11 - Aufgabe 127 // Program: BoeschAnja.cpp // Autor: Anja Bsch (Gruppe J) // Draw turtle graphic #include void f (const unsigned int i) { if (i == 0) ifm::forward(); else { f(i-1); ifm::left(42); ifm::save(); f(i-1); ifm::forward(2); ifm::left(42); f(i-1); ifm::restore(); ifm::right(42); f(i-1); ifm::forward(); } } int main () { f(7); return 0; }