11 lines
165 B
Rust
11 lines
165 B
Rust
|
fn main() {
|
||
|
let condition = true;
|
||
|
let number = if condition {
|
||
|
5
|
||
|
} else {
|
||
|
6
|
||
|
};
|
||
|
|
||
|
println!("The value of number is: {}", number);
|
||
|
}
|