A farm packs eggs in cartons of 12. Write EggCartons: read a number of eggs and print how many cartons are full, how many eggs are left over, how many cartons are needed to carry all the eggs, and how many places stay empty.
For the input
100
the program prints
Eggs: 100
Full cartons: 8
Eggs left over: 4
Cartons needed to carry all: 9
Empty places: 8
Find a formula for "cartons needed" that works without any if — also when the number of eggs is an exact multiple of 12.