Groovy web console
Subscribe
to this
site
leadingTwo
Published 3 months ago by
Thor
with tags
WB
Actions ➤
Edit in console
Back to console
Show/hide line numbers
View recent scripts
def leadingTwo(a){ x=a while(x>99) x=x.intdiv(10) return x } a=100 println(leadingTwo(a))