Conditionals in Rust
Introduction
So let's learn about how to create if-else statements in Rust.
Examples
fn main() {
let x = 10;
if x < 5 {
println!("Small");
} else {
println!("Big");
}
}
In the above Code snippet. Output will be Big.
O...
diptobiswas.hashnode.dev2 min read