calculate engine purchase

I need to write a program that calculates how many boxes and packages are needed for a specific number of engines. I need to use integer division (/,%) to calculate the number of boxes and packages.

engines are purchase in:
box = 24 engines
package = 3 engines

for example: I need 30 engines, so i will need 1 box(24 engines) and 2 packages (6 engines)



how do i use integer division to calculate number of boxes and packages needed?

Last edited on
what if you need 25 engines ?
Topic archived. No new replies allowed.