要求购物达到或超过2000元得打八折,购物达到或超过5?

intShoudPay(intvalue) { if(value=500value<2000) returnvalue-50; else return(int)(value*0.8f); } 原文没有提到1000-2000,不科学。不可能500-1000的都减价,1000-2000的不减, 当然如果你是做题的话请严格按照题意

回复
  • 周士琦用户

    intShoudPay(intvalue) { if(value=500&&value<2000) returnvalue-50; else return(int)(value*0.8f); } 原文没有提到1000-2000,不科学。不可能500-1000的都减价,1000-2000的不减, 当然如果你是做题的话请严格按照题意

    2024-05-03
    1楼
    回复

参与评论

游客评论不支持回复他人评论内容,如需回复他人评论内容请