Python code:
all = 0
greencanad = 0
for a in range(1, 100001):
if a % 8 == 0 and a % 12 == 0:
if a % 9 == 0:
all += 1
else:
greencanad += 1
print "all = ", all
print "greencanad = ", greencanad
gives 1388 pizzas with all the toppings and 2778 with canadian bacon & green pepper.
A machine processing pizzas in a factory puts the following ingredients on top of the pizza in this order.
canadanian bacon to every 8th pizza,
pieces of pineapple on every 9th pizza,
and green pepers to every 12th pizza.
Since it was turned on at the beginning of the week, the machine has processed 100,000 pizzas.
(1)How many pizzas have all the toppings?
(2)How many pizzas have the toppings of canadanion bacon and green pepers without pineapple pieces?
Very basic, solve and post.
first person to solve (WITH EQUESTION) will get a fun trofhy of his or her choice.