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

Theory of Combinatorial Algorithms

Prof. Emo Welzl and Prof. Bernd Gärtner

// Informatik - Challenge Aufgabe (lindenmeyer-system) // Programm: TruscelloLeonard.cpp // Autor: Leonard Truscello #include #include void f (const unsigned int i) { if (i == 0) ifm::forward(); else { f(i-1); ifm::left(120); f(i-1); ifm::left(120); } } int main () { std::cout << "Number of iterations =? "; unsigned int n; std::cin >> n; f(n); return 0; }