Language Draco
Date: | 04/20/05 |
Author: | James Hicks |
URL: | n/a |
Comments: | 0 |
Info: | n/a |
Score: | (2.89 in 9 votes) |
An Amiga language combining features of <a href=#c>C</a> and <a href=#pascal>Pascal</a> /* 99 Bottles of Beer */ /* James Hicks (hicksjl@cs.rose-hulman.edu) */ /* 5 August 1996 */ int BEERS = 99; proc main()void: uint i; for i from BEERS downto 1 do if i > 1 then writeln(i, " bottles of beer on the wall, ", i, " bottles of beer."); else writeln(i, " bottle of beer on the wall, ", i, " bottle of beer."); fi; writeln("Take one down, pass it around,"); if i > 2 then writeln(i - 1, " bottles of beer on the wall."); elsif i > 1 then writeln(i - 1, " bottle of beer on the wall."); else writeln("No bottles of beer on the wall."); fi; od; corp;
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