Hi Everyone, I'm new here...
I'm going through a simple PHP exercise, but can't seem to figure it out...
Suppose a Can of Soup costs 5 dollars and a Chocolate Bar costs 3 dollars. I have 78 dollars on me.
I need to write a php function that can calculate how many cans of soups and chocolate bars I can get, starting with cans of soup first.
I can do it in my head...It's 14 Cans of Soup and 2 Chocolate Bars, leaving me with 2 dollars.
Does anyone have an idea on where to start? Thanks!