Exerpad
🔥0
0 XP
Lv.1 Beginner
Log In

Fix the Math

This program should compute the average of three numbers, but something is wrong with the math. Fix it!

Expected output:

text
Average: 20
rust
fn main() {
let a = 10;
let b = 20;
let c = 30;

let average = a + b + c * 3;
println!("Average: {}", average);
}