[thelist] mod (%) help
erik mattheis
gozz at gozz.com
Thu Jul 17 02:45:54 CDT 2008
On Thu, Jul 17, 2008 at 2:40 AM, erik mattheis <gozz at gozz.com> wrote:
>
> in js:
>
strike that. Try this
var discountedWheels = 0;
var discountedKits = 0;
var numWheels = 6;
for (var totalWheels = numWheels; totalWheels >= 4; totalWheels -= 4) {
discountedWheels +=4;
discountedKits += 1;
}
fullPriceWheels = totalWheels;
alert(fullPriceWheels);
alert(discountedWheels);
alert(discountedKits);
--
Erik
http://fearofclowns.com/
612 377 21272
More information about the thelist
mailing list