99 bottles of beer: Difference between revisions
Content added Content deleted
(→{{header|R}}: Made subsections for the varying implementations) |
(Add Inform 6.) |
||
Line 2,278: | Line 2,278: | ||
print, b+wallT+string(10B)+b+wallT2+string(10B)+takeT+string(10B)+b2+wallT+string(10B) |
print, b+wallT+string(10B)+b+wallT2+string(10B)+takeT+string(10B)+b2+wallT+string(10B) |
||
End</lang> |
End</lang> |
||
=={{header|Inform 6}}== |
|||
<lang inform6>[ Bottles i; |
|||
if(i == 1) return "bottle"; |
|||
return "bottles"; |
|||
]; |
|||
[ Beer i; |
|||
print i, " ", (string) Bottles(i), " of beer on the wall^"; |
|||
print i, " ", (string) Bottles(i), " of beer^"; |
|||
print "Take one down, pass it around^"; |
|||
i--; |
|||
print i, " ", (string) Bottles(i), " of beer on the wall^^"; |
|||
if(i ~= 0) Beer(i); |
|||
]; |
|||
[ Main; |
|||
Beer(99); |
|||
]; |
|||
</lang> |
|||
=={{header|Inform 7}}== |
=={{header|Inform 7}}== |