% int beers = 99;
while (beers > 0) {
int loop = 2;
while (loop > 0) { %>
<%=beers%> bottle<%= beers!=1 ? "s":""%> of beer<%= loop-- ==2 ? " on the wall, " : "
"%>
<% } %>
Take one down pass it around,
<%= --beers>0 ? ""+beers:"no more"%> bottle<%= beers!=1 ? "s":""%> of beer on the wall.
<% } %>
No more bottles of beer on the wall, no more bottles of beer
Go to the store, buy some more, 99 bottles of beer on the wall.