Answers for "rust conditional statement"

-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

Code answers related to "rust conditional statement"

Browse Popular Code Answers by Language