Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class PriceAdjustment{
- public static int bumpMe(int price, int increase, boolean updown){
- return updown ? price + price* increase/100 : price - price* increase/100;
- }
- public static void main(String[] args){
- bumpMe(1000,10,true);
- bumpMe(999,10,false);
- }
- }
Add Comment
Please, Sign In to add comment