Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = "";(1..100).each{b = it % 3 == 0;c = it % 5 == 0;if (b) a += "fizz";if (c) a += "buzz";if (!(b) && !(c)) a += it;a+="\n";};print a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement