mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-11 23:08:34 +08:00
Update 05.4.md
This commit is contained in:
@@ -155,7 +155,7 @@ func main() {
|
||||
|
||||
写一个从 1 打印到 100 的程序,但是每当遇到 3 的倍数时,不打印相应的数字,但打印一次 "Fizz"。遇到 5 的倍数时,打印 `Buzz` 而不是相应的数字。对于同时为 3 和 5 的倍数的数,打印 `FizzBuzz`(提示:使用 switch 语句)。
|
||||
|
||||
**练习 5.8** Fizz-Buzz 问题:[rectangle_stars.go](exercises/chapter_5/rectangle_stars.go)
|
||||
**练习 5.8** [rectangle_stars.go](exercises/chapter_5/rectangle_stars.go)
|
||||
|
||||
使用 `*` 符号打印宽为 20,高为 10 的矩形。
|
||||
|
||||
|
Reference in New Issue
Block a user