How to resolve the algorithm 99 bottles of beer step by step in the Suneido programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm 99 bottles of beer step by step in the Suneido programming language
Table of Contents
Problem Statement
Display the complete lyrics for the song: 99 Bottles of Beer on the Wall.
The lyrics follow this form: ... and so on, until reaching 0 (zero). Grammatical support for 1 bottle of beer is optional. As with any puzzle, try to do it in as creative/concise/comical a way as possible (simple, obvious solutions allowed, too).
Let's start with the solution:
Step by Step solution about How to resolve the algorithm 99 bottles of beer step by step in the Suneido programming language
Source code in the suneido programming language
i = 99
while (i > 0)
{
Print(i $ ' bottles of beer on the wall')
Print(i $ ' bottles of beer')
Print('Take one down, pass it around')
--i
if i is 0
Print('Ahh poo, we are out of beer\n')
else
Print(i $ ' bottles of beer on the wall\n')
}
You may also check:How to resolve the algorithm CRC-32 step by step in the PHP programming language
You may also check:How to resolve the algorithm N-queens problem step by step in the jq programming language
You may also check:How to resolve the algorithm Thue-Morse step by step in the AWK programming language
You may also check:How to resolve the algorithm String comparison step by step in the Forth programming language
You may also check:How to resolve the algorithm Arena storage pool step by step in the Erlang programming language