Groovy web console

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

Dijagonala

Published 3 months ago by Obrad
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
//Napisati funkciju koja ce da prihvati dva parametra koji predstavljaju stranice pravougaonika i da prikaze rezultat
//a rezultat je dijagonala pravougaonika

def a = 10
def b = 5

def d = Math.sqrt(125)
println d