Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Ruby FizzBuzz Example
jessicakennedy1028
Sep 9th, 2018
201
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Ruby
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
1
.
upto
(
100
)
do
|
i
|
fizz =
(
i
%
3
==
0
)
buzz =
(
i
%
5
==
0
)
puts
case
when
fizz
&&
buzz
then
'FizzBuzz'
when
fizz
then
'Fizz'
when
buzz
then
'Buzz'
else
i
end
end
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
⭐⭐ Crypto Swap Glitch ✅ Easy money ⭐⭐
JavaScript | 6 sec ago | 0.67 KB
📌📌 +10,000$ in 1 Week - METHOD
JavaScript | 51 sec ago | 0.67 KB
🔥 +10,000$ in 1 Week - METHOD 🔥 ⭐🔥
JavaScript | 1 min ago | 0.66 KB
⭐⭐ Instant Money Method ⭐⭐
JavaScript | 2 min ago | 0.67 KB
Infinite Money Glitch
JavaScript | 2 min ago | 0.67 KB
🔥🔥 BIG MONEY BY TRUMP⭐ 💵💵
JavaScript | 3 min ago | 0.66 KB
⭐⭐ INSTANT MONEY EXPLOIT ⭐⭐
JavaScript | 4 min ago | 0.67 KB
🚨 MILLIONAIRES MONEY 📌⭐
JavaScript | 5 min ago | 0.66 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!