Groovy web console

subscribe to the feed Subscribe
to this
site
11^1001 (via #groovywebconsole)
tweet this snippet Tweet
this
script

11^1001

Published 2 weeks ago by Gabriel Bianchi
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
//11^1001
final Integer x = 11
final Integer y = 1001
BigDecimal res = 1
for(int i = 0 ; i < y ; i++) {
    res*=x
    //println "x = ${x} - i = ${i} - res = ${res}"
}
println res