summary refs log tree commit diff stats
path: root/examples
diff options
context:
space:
mode:
authortakano32 <mitsuhiro.takano@gree.co.jp>2011-11-29 16:36:05 +0900
committertakano32 <mitsuhiro.takano@gree.co.jp>2011-11-29 16:36:05 +0900
commitd0e4d5f00903111a42fa3b1d930317f385326db0 (patch)
tree4b02c1a2ae92688b75b03248a117d557dab22a3b /examples
parentc8e75712790ac3a7e64eb43b42b7dcd44c8753b1 (diff)
downloadNim-d0e4d5f00903111a42fa3b1d930317f385326db0.tar.gz
sorry, i didnt test and commit...
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/fizzbuzz.nim8
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