// 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;
}