1/5

loop + if + break works, but there's a cleaner rune when the exit condition is known up front: while.

while floors > 0 {
    println!("descending...");
    floors -= 1;
}

While the condition holds, repeat. The check happens before every pass — if it's false from the start, the body never runs.