//Informatik - Serie 11 - Skript-Aufgabe 127
//Prog: MeierSonja2.cpp
//Nice with 6-7 iterations
//Autor: Sonja Meier
#include
#include
//Post : the word w_i ^ F is drawn
void f (const unsigned int i)
{
if (i == 0)
ifm::forward();
else {
f(i-1);
ifm::left(45);
f(i-1);
ifm::right(135);
f(i-1);
}
}
int main() {
std::cout << "Number of iterations?" << std::endl;
unsigned int n;
std::cin >> n;
f(n);
return 0;
}