Recursion

Examples of recursion use in nuBASIC: Fact.bas shows how to calculate the factorial of an integer number.

Guess.bas

This 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

PingPong.bas

This code is a simple "Solitaire" Ping Pong demo.