Skip to content

Instantly share code, notes, and snippets.

@sys1yagi
Created March 15, 2013 11:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sys1yagi/5169263 to your computer and use it in GitHub Desktop.
Save sys1yagi/5169263 to your computer and use it in GitHub Desktop.
fizzbuzz task for gradle.
task fizzbuzz << {
100.times {i ->
i = i+1
if( i % 15 == 0){
println("fizzbuzz")
}
else if( i % 3 == 0){
println("fizz")
}
else if( i % 5 == 0){
println("buzz")
}
else{
println(i)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment