Groovy web console

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

Dijagonala

Published 2 weeks ago by Marija with tags vezba1
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}

izracunajDijagonalu(210,297)