Quiz · Conditions and Loops · lesson 6 of 6
Quiz — ranges and labels
Question 1 of 2
What does the program print?
fn main() {
let mut s = 0;
for i in 1..4 {
s += i;
}
println!("{s}");
}What does the program print?
fn main() {
let mut s = 0;
for i in 1..4 {
s += i;
}
println!("{s}");
}