Groovy web console

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

Dijagonala je

Published 5 months ago by Marija with tags Vezba 2
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def izracunajDijagonalu(int a, int b) {int dijagonala = Math.sqrt(a * a + b * b)
println "dijagonala je "+dijagonala}

izracunajDijagonalu(24,10)