Permalink
Browse files

Add "99 bottles of beer" example in Potion

  • Loading branch information...
1 parent f0e33ed commit 6413e37c4fce731a2a5a57e767e97a99928b37c6 @beakr beakr committed with Reini Urban Jan 13, 2014
Showing with 18 additions and 0 deletions.
  1. +18 −0 example/99bottles.pn
View
@@ -0,0 +1,18 @@
+count = 99
+99 times:
+ "\n" print
+ if (count == 1):
+ (count, " bottle of beer on the wall\n") join print
+ (count, " bottle of beer\n") join print.
+ else:
+ (count, " bottles of beer on the wall\n") join print
+ (count, " bottles of beer\n") join print.
+
+ "Take one down, pass it around\n" print
+ count = count - 1
+ if (count == 1):
+ (count, " bottle of beer on the wall\n") join print.
+ else:
+ (count, " bottles of beer on the wall\n") join print.
+ "\n" print.
+"No more bottles of beer on the wall\n" print

0 comments on commit 6413e37

Please sign in to comment.