Exerpad
🔥0
0 XP
Lv.1 Beginner
Log In

Fix the Types

The variables below have the wrong types. Fix them so the program works correctly.

Expected output:

text
Age: 10
Height: 4.5

Hint: An age should be a whole number and a height should be a decimal number.

rust
fn main() {
let age: f64 = 10.0;
let height: i32 = 4;

println!("Age: {}", age);
println!("Height: {}", height);
}