Groovy web console

subscribe to the feed Subscribe
to this
site

Square of integer

Published 2 years ago by Valentin with tags function
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
int square(int x){  
  return x*x
}


println(square(8))