📜  rust if 条件 - Rust 代码示例

📅  最后修改于: 2022-03-11 14:49:25.845000             🧑  作者: Mango

代码示例1
fn main() {
    let number = 3;

    if number < 5 {
        println!("condition was true");
    } else {
        println!("condition was false");
    }
}