do
{
    eat();
    sleep();
    code();
}
while(repeat);