Toy programs
Encyclopedia
Toy Programs are simplistic computer programs, typically written by novice programmers, that allow the programmer to gain a feel for the language they're working with. Toy programs are generally of little practical use, although the concepts implemented may be useful in a much more sophisticated program.

Typical examples of toy programs are computing the Nth term in a sequence, finding the roots of a quadratic equation
Quadratic equation
In mathematics, a quadratic equation is a univariate polynomial equation of the second degree. A general quadratic equation can be written in the formax^2+bx+c=0,\,...

 and testing if a number is prime
Prime number
A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself. A natural number greater than 1 that is not a prime number is called a composite number. For example 5 is prime, as only 1 and 5 divide it, whereas 6 is composite, since it has the divisors 2...

.

Toy Programs are also used for a developer trying out a new programming language, to test all of the language's syntax, and coding methods.
The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK