Exerpad
Exercise 9 · Chapter: Linear ProgramsOptional+50 XP

Fix the Order

The lines in this program are in the wrong order. Rearrange them so it works!

Expected output:

Total: 15
Need a hint?
3 available · costs 5 XP each
javascript
console.log("Total:", total);
let total = a + b;
let a = 7;
let b = 8;
Output
Run your code to see the output here.