what is the difference between an expression and a statement?
expressions have values. Statements don’t.
Can if produce a value?
yes
can match produce a value?
yes
can a match expression be passed as a parameter to a function
yes
what is the syntax for a match statement
let phrase = match something {
0 => "zero",
1 => "two",
_ => "three"
}what is the syntax for the four looping expressions
while condition {}
while let pattern = expr {}
loop {}
for pattern in collection {}
write a for loop that prints 1 through 5
for i in 1..6 {
println!(“{}”, i );
}