Fix the Call
This code has a function that takes two parameters, but it's being called with the wrong number of arguments! Fix the function call so it works.
Expected output:
text
The area is 35
Hint: Look at the function definition — it needs two arguments (width and height), but the call is only passing one!
rust
fn area(width: i32, height: i32) -> i32 {
width * height
}
fn main() {
println!("The area is {}", area(5));
}