Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language NVML

(command-line version)

Date:05/18/05
Author:Thomas J. Hruska
URL:n/a
Comments:0
Info:http://www.slproweb.com/products/nvml.html
Score: (2.71 in 14 votes)
<nvmlmode type="binary">
<nvdebug type="off">
<nvrestart>

<nv!> Deal with primary cases. </nv!>
<nvfor var="Loop1" initial="99" condition="<Loop1> > 2" increment="-1">
  <nvdirect var="TempVar" processtags><nv-math operation="round" value="<Loop1>" places="0"> bottles
of beer on the wall,
<nv-math operation="round" value="<Loop1>" places="0"> bottles of beer.
Take one down, pass it around,
<nv-math operation="round" value="<Loop1> - 1" places="0"> bottles of beer on the wall.

</nvdirect>
  <nvbinary var="TempVar">
</nvfor>

<nv!> Deal with pathological cases. </nv!>
<nvdirect var="TempVar" processtags>2 bottles of beer on the wall,
2 bottles of beer.
Take one down, pass it around,
1 bottle of beer on the wall.

</nvdirect>
<nvbinary var="TempVar">

<nvdirect var="TempVar" processtags>1 bottle of beer on the wall,
1 bottle of beer.
Take one down, pass it around,
No more bottles of beer on the wall.
(You hurry to the store but return to find your bar burninated).
(Oh well, have 99 bottles of beer to yourself).
</nvdirect>
<nvbinary var="TempVar">

Download Source | Write Comment

Alternative Versions

VersionAuthorDateCommentsRate
web-based versionThomas J. Hruska05/18/050

Comments

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!

Name:

eMail:

URL:

Security Code:
  
Comment: