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

Theory of Combinatorial Algorithms

Prof. Emo Welzl and Prof. Bernd Gärtner

// IFMP - Serie 11 - Challenge 125 // Programm: SpoerriMarc.cpp // Autor: Marc Spšrri // draws an amazing picture using turtle. #include #include void x (const unsigned int i) { if (i == 0) { ifm::forward();} else{ ifm::left(30); ifm::save(); ifm::forward(); x(i-1); ifm::restore(); ifm::left(90); ifm::forward(); x(i-1); } } int main(){ std::cout << "number of iterations "; int a; std::cin >> a; x(a); return 0;}