/* A program to tell how many machines the mint must run to obtain a required output, at 93 coins/minute per machine. */ #define MACHINE_OUTPUT 93 /* coins per minute per machine */ #include main () { /* Declare a variable, coins, to store the coins required and another, machines, for the number of machines to run. */ int coins, machines; /* Print a message requesting the required output/minute. */ printf("How many coins are needed per minute? "); /* Input answer into coins */ scanf("%d", &coins); /* Calculate the machines required. */ machines = (coins + (MACHINE_OUTPUT - 1))/MACHINE_OUTPUT; /* Print the answer */ printf("%d machines must operate.\n", machines); }