Action Script
10 Green Bottles
By Eric barrows
bottles();
function bottles() {
gnb = ", green bottles sitting on the wall!";
btf = "And if one green bottle should accidentally fall";
for (i=10; i>=1; --i) {
trace(i+gnb);
trace(btf);
if (i > 1) {
trace("There'll be "+(i-1)+gnb);
} else {
trace("There'll be NO more"+gnb);
}
}
}
Comments (0)
You don't have permission to comment on this page.