Turing ![]() |
http://www.holtsoft.com/turing/introduction.html |
Description: | Turing is a general purpose programming language designed for the convenient development of reliable, efficient programs. A descendant of Pascal, Turing is specifically designed to be easy to learn, to have a concise and expressive syntax, graceful and effective treatment of errors, effective control of program complexity, a mathematically precise language definition, and a small, fast implementation. It is particularly well suited to support computer science education. |
Factorial | James R. Cordy |
function fac (n : int) if n > 1 then result n * fac (n - 1) else result 1 end if end fac put fac (6) |
Calculates the factorial. Results
720 . |
Hello World | James R. Cordy |
put "Hello World" |
Prints "Hello World" onto the
screen. |
Squares | James R. Cordy |
for i : 1 .. 10 put i * i end for |
Outputs the squares from 1 to
10. |