Exercise 8 · Chapter: Linear ProgramsOptional+50 XP
Pizza Slices
You have 3 pizzas with 8 slices each, and 5 people. Calculate how many slices each person gets and how many are left over.
Your output should be:
Each person gets 4 slices Leftover slices: 4
Need a hint?
3 available · costs 5 XP each
javascript
let pizzas = 3;
let slicesPerPizza = 8;
let people = 5;
// Calculate slices per person and leftovers
Output
Run your code to see the output here.