Skip to content

Commit

Permalink
fizzbuzz fixed-2
Browse files Browse the repository at this point in the history
  • Loading branch information
今井賢人 authored and 今井賢人 committed Oct 7, 2021
1 parent bf922d1 commit 1d267b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fizzbuzz.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

(1..num).each do |i|

if i%15 == 0
if i % 15 == 0
puts "FizzBuzz!"
elsif i%3 == 0
elsif i % 3 == 0
puts "Fizz!"
elsif i%5 == 0
elsif i % 5 == 0
puts "Buzz!"
else
puts i
Expand Down

0 comments on commit 1d267b9

Please sign in to comment.