How to resolve the algorithm 99 bottles of beer step by step in the HicEst programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm 99 bottles of beer step by step in the HicEst 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 HicEst programming language

Source code in the hicest programming language

DO x = 99, 1, -1
  WRITE()   x       , "bottles of beer on the wall"
  BEEP("T16 be be be   bH bH   bH be   be be  2be ")

  WRITE()   x       , "bottles of beer"
  BEEP("2p  f f f      c  c    c  2f  ")

  WRITE()  "take one down,  pass it around"
  BEEP("2p  2d   d   d   2p d    d  d 2d  ")

  WRITE()   x     , "bottles of beer on the wall"
  BEEP("2p  #A #A #A c  c    d  #d   #d #d  2#d 2p")
ENDDO

  

You may also check:How to resolve the algorithm N-queens problem step by step in the Fortran programming language
You may also check:How to resolve the algorithm Sort an integer array step by step in the Gambas programming language
You may also check:How to resolve the algorithm Command-line arguments step by step in the Objective-C programming language
You may also check:How to resolve the algorithm Deceptive numbers step by step in the Scheme programming language
You may also check:How to resolve the algorithm Random number generator (included) step by step in the M2000 Interpreter programming language