diff options
author | takano32 <mitsuhiro.takano@gree.co.jp> | 2011-11-29 16:36:05 +0900 |
---|---|---|
committer | takano32 <mitsuhiro.takano@gree.co.jp> | 2011-11-29 16:36:05 +0900 |
commit | d0e4d5f00903111a42fa3b1d930317f385326db0 (patch) | |
tree | 4b02c1a2ae92688b75b03248a117d557dab22a3b /examples | |
parent | c8e75712790ac3a7e64eb43b42b7dcd44c8753b1 (diff) | |
download | Nim-d0e4d5f00903111a42fa3b1d930317f385326db0.tar.gz |
sorry, i didnt test and commit...
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/fizzbuzz.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/fizzbuzz.nim b/examples/fizzbuzz.nim index 5807549d3..4b203512c 100755 --- a/examples/fizzbuzz.nim +++ b/examples/fizzbuzz.nim @@ -3,12 +3,12 @@ const f = "Fizz" const b = "Buzz" for i in 1..100: - if i mod 3 == 0: - echo f + if i mod 15 == 0: + echo f, b elif i mod 5 == 0: echo b - elif i mod 15 == 0: - echo f, b + elif i mod 3 == 0: + echo f else: echo i |