var/money_taken = number_of_chips * chip_cost
while(money_taken > player_money)
money_taken -= chip_cost
* Certain restrictions may apply. This offer is only applicable to residents of the United States. Applicants must also be a resident of Florida, and must have spent atleast 100% of their lives in Jacksonville, FL, Sykesville, MD, Pontiac, MI, or a combination of all. Can will be set on YMIHere's front porch and you may only step foot on there if you are a) a resident of the house of YMIHere, b) YMIHere, and c) the sole owner of a Super Nintendo Entertainment System with the serial number UN16463575. ©, ©, all rights reserved, inc., yes we do own you, ®, ™, ©. If you are still eligible, knock it off already YMI. It wasn't funny at the beginning and it isn't funny now.
So, any help? =)
I would do "If", but, I've never seen the while statement.
You said Coca-Cola, I just want Coke.