Groovy web console

subscribe to the feed Subscribe
to this
site
Tono piterpan (via #groovywebconsole)
tweet this snippet Tweet
this
script

Tono piterpan

Published 4 months ago by necro
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
1.upto(20) { langkah -> 
    println "langkah: " + langkah
    langkah.step(20, langkah) { 
        if (it % langkah == 0) { println(it) }
    }
}