Fix the Loop
Oh no! This loop is supposed to print the numbers 1 through 5, but it has a bug. It runs forever because the counter never changes!
Fix the code so it prints:
text
1 2 3 4 5
Hint: Look carefully — what's missing inside the loop?
rust
fn main() {
let mut count = 1;
while count <= 5 {
println!("{}", count);
}
}