Online Rust Compiler
										
										
fn main() {
    let x = 20;
    let y = 40;

    let z = x + y;

    println!("Sum of x and y = {} ",z);
}
                                
                                

Output Results

										
Sum of x and y = 60