if else Rust
// pratical example of if/else in rust
if n > 1 {
println!("It's greater");
} else if n == 1 {
println!("It's equal");
} else {
println!("It's minor");
}
if else Rust
// pratical example of if/else in rust
if n > 1 {
println!("It's greater");
} else if n == 1 {
println!("It's equal");
} else {
println!("It's minor");
}
if in rust
if <boolean expression> {
print!("result from expression is true");
}
else {
print!("result from expression is false");
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us