How to resolve the algorithm 99 bottles of beer step by step in the FutureBasic programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm 99 bottles of beer step by step in the FutureBasic 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 FutureBasic programming language
Source code in the futurebasic programming language
include "NSLog.incl"
NSUInteger i
CFStringRef a, b, c
a = @" bottles of beer on the wall,\n"
b = @" bottles of beer.\n"
c = @"Take one down, pass it around,\n"
for i = 99 to 1 step -1
NSLog( @"%ld%@%ld%@%@%ld%@\n", i, a, i, b, c, i -1, a )
next
HandleEvents
You may also check:How to resolve the algorithm Spinning rod animation/Text step by step in the XPL0 programming language
You may also check:How to resolve the algorithm Repeat a string step by step in the EasyLang programming language
You may also check:How to resolve the algorithm Align columns step by step in the ML/I programming language
You may also check:How to resolve the algorithm Dragon curve step by step in the EasyLang programming language
You may also check:How to resolve the algorithm Animation step by step in the PicoLisp programming language