Answers for "rust if statement in struct"

-1

rust if condition

fn main() {
    let number = 3;

    if number < 5 {
        println!("condition was true");
    } else {
        println!("condition was false");
    }
}
Posted by: Guest on September-16-2021

Browse Popular Code Answers by Language