Skip to content

FizzBuzzを実装する - #616

Open
T-REX1996 wants to merge 1 commit into
fjordllc:mainfrom
T-REX1996:add-fizzbuzz
Open

FizzBuzzを実装する#616
T-REX1996 wants to merge 1 commit into
fjordllc:mainfrom
T-REX1996:add-fizzbuzz

Conversation

@T-REX1996

Copy link
Copy Markdown

概要

1〜20までの数値に対してFizzBuzzを出力するコードを実装しました。

工夫した点

15の倍数の判定を n % 3 == 0 && n % 5 == 0 ではなく n % 15 == 0 で行っています。
3と5の最小公倍数が15であることを利用し、条件をシンプルにしました。

@coderabbitai

coderabbitai Bot commented Aug 22, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: ebcfc90b-b4a8-440d-bd84-96a70950658d


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant