LARA

x = 13;
while (x > 1) {
  println("x=", x);
  if (x % 2 == 0) {
    x = x / 2;
  } else {
    x = 3 * x + 1;
  }
}