You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, I was wondering, there is no reference to else if in chapter Control flow, part 1. If you have time, could you add an example or a reference.
let number = 6;if number % 4 == 0{println!("number is divisible by 4");}elseif number % 3 == 0{println!("number is divisible by 3");}elseif number % 2 == 0{println!("number is divisible by 2");}else{println!("number is not divisible by 4, 3, or 2");}
Thank you for good project to learn Rust!
The text was updated successfully, but these errors were encountered:
Hi there, I was wondering, there is no reference to
else if
in chapter Control flow, part 1. If you have time, could you add an example or a reference.Something like this or direct link to read more about it Control Flow: else if
Thank you for good project to learn Rust!
The text was updated successfully, but these errors were encountered: