//Informatik: Serie - Serie 11- Aufgabe 127
//Program: BaldacchinoOliver1.cpp
//Autor: O. Baldacchino
#include
#include
using namespace std;
void y (const unsigned int i);
void x (const unsigned int i)
{
if (i > 0){
x(i-1);
ifm::left(60);
y(i-1);
ifm::left(60);
}
}
void y (const unsigned int i){
if (i > 0){
ifm::right(45);
ifm::forward();
ifm::jump(5);
x(i-1);
ifm::left(45);
y(i-1);
}
}
/*
void y (const unsigned int i);
void x (const unsigned int i)
{
if (i > 0){
y(i-1);
ifm::left(60);
x(i-1);
ifm::right(60);
y(i-1);
}
else{
ifm::forward();}
}
void y (const unsigned int i)
{
if (i > 0){
x(i-1);
ifm::left(60);
y(i-1);
ifm::right(60);
x(i-1);
}
else{
ifm::forward();}
}
*/
int main ()
{
unsigned int n;
std::cout <<"Numbers of iteration = ?"; std::cin >> n;
y(n);
return 0;
}