Language Arc
| Date: | 04/11/08 |
| Author: | Sanel Zukan |
| URL: | n/a |
| Comments: | 0 |
| Info: | http://arclanguage.org |
| Score: |
;; ;; Arc example with more imperative approach ;; Sanel Zukan (def bottles (num) (while (> num 0) (pr num " bottles of beer on the wall, " num " bottles of beer.\n") (pr "Take one down, pass it around, ") (= one-less (- num 1)) (if (is one-less 0) (pr "no more beer on the wall!\n") (pr one-less " bottles of beer on the wall.\n")) (pr "--\n") (= num one-less))) (bottles 99)
Download Source | Write Comment
Download Source | Write Comment
Add Comment
Please provide a value for the fields Name,
Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.
Please don't post large portions of code here! Use the form to submit new examples or updates instead!
Comments