OK, you have located the point of failure: After doing the medium calculations there are two slices still needed. Well, How many small pizzas are needed at this point?
Your program obviously...
Type: Posts; User: Zaphod_b
OK, you have located the point of failure: After doing the medium calculations there are two slices still needed. Well, How many small pizzas are needed at this point?
Your program obviously...
If you have correct input and incorrect output, I would say that something is wrong. (Maybe math.)
Wait a minute. I'll get my trusty #2 Ticonderoga and some paper. I'll go through things a step...