RecursionExamples of recursion use in nuBASIC Fact.bas shows how to calculate the factorial of an integer number. Guess.basThis simple game challenges the user to guess a randomly selected number within the 1-10 range, without offering the usual hints of "higher"/"lower". It is written using QBasic-like dialect syntax supported by nuBASIC. See also http://en.wikipedia.org/wiki/QBasic Parabola.basA simple program which shows how to draw a math curve Readfile.basThis simple example shows how to read a text file and display its content on the screen.Draw image samplesThese examples show how to draw bitmap read from file on the screen. Cartoon shows how to make a simple animation. Code.basThe following program is an example of the ALGOL-like BASIC dialect supported by nuBASIC.See also http://en.wikipedia.org/wiki/Turbo_Basic Plane.basThis program is another example which shows how to draw bitmaps for creating simple 2D game graphics. |
Code samples >