Skip to content
New issue

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

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

Already on GitHub? # to your account

Update fizzbuzz.go #852

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update fizzbuzz.go #852

wants to merge 1 commit into from

Conversation

zev3n
Copy link

@zev3n zev3n commented Aug 6, 2022

修正程序结果与“练习 5.7 Fizz-Buzz 问题”描述不一致的问题

写一个从 1 打印到 100 的程序,但是每当遇到 3 的倍数时,不打印相应的数字,但打印一次 "Fizz"。遇到 5 的倍数时,打印 Buzz 而不是相应的数字。对于同时为 3 和 5 的倍数的数,打印 FizzBuzz(提示:使用 switch 语句)。

修正程序结果与“练习 5.7 Fizz-Buzz 问题”描述不一致的问题
@DongzhouTImes
Copy link

DongzhouTImes commented Aug 6, 2022 via email

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants