How to calculate the area of parallelogram in Rust

1 Answer

0 votes
fn main() {
    let base:f32 = 7.0;  
    let height:f32 = 13.0; 
      
    let area:f32 = base * height;  
 
    println!("Area of Parallelogram = {}", area);
}



 
/*
run:
    
Area of Parallelogram = 91
    
*/

 



answered May 8, 2023 by avibootz

Related questions

...