Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fizzbuzz added #1

Merged
merged 3 commits into from Oct 7, 2021
Merged

fizzbuzz added #1

merged 3 commits into from Oct 7, 2021

Conversation

chiimmu
Copy link
Owner

@chiimmu chiimmu commented Oct 4, 2021

No description provided.

fizzbuzz.rb Outdated
@@ -0,0 +1,13 @@
(1..30).each do |i|

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ユーザーからの入力を受け付けてその数値分だけループさせるように書き換えてみましょうか。

fizzbuzz.rb Outdated
@@ -0,0 +1,13 @@
(1..30).each do |i|

if i%15==0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

演算子の両サイドには半角スペースを入れるのが慣習ですね。

その他の場所も同様です。

fizzbuzz.rb Outdated

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

if i%15 == 0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

%も演算子なので両サイドに半角スペースがあった方が良いですね!

Copy link

@DaichiSaito DaichiSaito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

download

@chiimmu chiimmu merged commit e17c8ed into main Oct 7, 2021
@chiimmu chiimmu deleted the develop branch October 7, 2021 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants