Skip to content

Commit

Permalink
Merge pull request #69 from hametsu/master
Browse files Browse the repository at this point in the history
i wrote new example program
  • Loading branch information
Araq committed Nov 29, 2011
2 parents 11df009 + c70ed04 commit 48b940b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions examples/fizzbuzz.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Fizz Buzz program

const f = "Fizz"
const b = "Buzz"
for i in 1..100:
if i mod 15 == 0:
echo f, b
elif i mod 5 == 0:
echo b
elif i mod 3 == 0:
echo f
else:
echo i

0 comments on commit 48b940b

Please sign in to comment.