ccw on 03/26/12
Last Edited at 03/26/12 02:37pm
final def MAX = 1000def sum = 0(3..MAX-1).each { if (it % 3 == 0 || it % 5 == 0) { sum += it }}println "sum => $sum"
Report this snippet Tweet
Comment:
You need to login to post a comment.