Groovy web console

subscribe to the feed Subscribe
to this
site

công thức

Published 3 weeks ago by Anonymous
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts

def receivedQuantity = 50

def r1 =(receivedQuantity*
(  receivedQuantity > 500 ? 2000    : (receivedQuantity >= 101 ? 2500
      : (receivedQuantity >= 16 ? 3000
            :(receivedQuantity >= 6 ? 4000
                :5000
        )
      )
    )

))
print(r1)