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 // Programm: WilleminSimon.cpp // Draw turtle graphics for the Lindenmayer system // with a rotation angle of 360° // Autor: Willemin Simon #include #include void f (const int i) { if (i <= 0) ifm::forward(); else f(i-1); } int main () { std::cout << "Number of iterations =? "; int n; std::cin >> n; f(n); return 0; }