例如:商店有3种不同的促销支付金额,如果购买10个获得1个积分,20个购买2个credit...These促销,我在配置中设置如下:
奖励
0
10 amount
1 reward
1
20 amount
2 reward
2
30 amount
3 reward那么,我如何循环或访问这些才能确定我的购买量呢?
注意:我是编程新手,所以请指导我做作业。
我希望输出应该是:
if amount=20
then
array[0] true
array[1] true
array[3] wrong(require amount=30)
then get the final credit i gethttps://stackoverflow.com/questions/55608512
复制相似问题