You are viewing a single comment's thread. Return to all comments →
public static long taumBday(long noOfBlackGifts, long noOfWhiteGifts, long blackGiftPrice, long whiteGiftPrice, int conversionCost) { if(conversionCost < Math.abs(blackGiftPrice-whiteGiftPrice)) { if(blackGiftPrice < whiteGiftPrice) { whiteGiftPrice = blackGiftPrice + conversionCost; } else if(whiteGiftPrice < blackGiftPrice){ blackGiftPrice = whiteGiftPrice + conversionCost; } } return (noOfBlackGifts * blackGiftPrice) + (noOfWhiteGifts * whiteGiftPrice); }
Seems like cookies are disabled on this browser, please enable them to open this website
Taum and B'day
You are viewing a single comment's thread. Return to all comments →