Language NASL - Nessus Attack Scripting Language
| Date: | 05/12/05 |
| Author: | Paul Dale |
| URL: | n/a |
| Comments: | 0 |
| Info: | http://www.nessus.org/ |
| Score: |
function bottles(n)
{
if (n == 0)
return "no bottles";
if (n == 1)
return "1 bottle";
return i + " bottles";
}
for (i=100; i> 0; ) {
display(bottles(n: i),' of beer on the wall, ', bottles(n: i),' of beer.\n');
display('Take one down and pass it around,\n');
display(bottles(n: --i), ' of beer on the wall.\n\n');
}
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