+ 7

Ruby Game

Let us play a game 1. We will loop in an array from 1..20 2. When a loop reach to a number that can be devided by 3 instead of returning a number it can return Fizz 3. When a loop reach to a number devided by 5 it will return Buzz 4. When the loop reach to a number that can be devided by both 3 and 5 return Fizz Buzz Let us play buddy

1st Oct 2017, 7:45 AM
Mugwaneza Joseph
Mugwaneza Joseph - avatar
6 Answers
+ 7
My try prints (1..100), Ruby, of course: https://code.sololearn.com/cyLR13G7OXxG
2nd Oct 2017, 1:38 AM
noobcĂžder
noobcĂžder - avatar
3rd Oct 2017, 8:31 AM
David Akhihiero
David Akhihiero - avatar
+ 4
here is my code running in ruby https://code.sololearn.com/crnYQqpqw65J/?ref=app
1st Oct 2017, 8:45 AM
Mugwaneza Joseph
Mugwaneza Joseph - avatar
+ 1
yes
1st Oct 2017, 8:00 AM
Kunal Kumar
Kunal Kumar - avatar