Exercise 3 · Chapter: Linear ProgramsRequired+50 XP
Fix the Math
This program should compute the average of three numbers, but the math is wrong. Fix it!
Expected output:
Average: 20
Need a hint?
3 available · costs 5 XP each
javascript
let a = 10;
let b = 20;
let c = 30;
let average = a + b + c / 3;
console.log("Average:", average);
Output
Run your code to see the output here.