4 ms·
There's the TPK Algorithm, but it still doesn't show off certain parts of the language, such as dynamic memory allocation or passing around references/pointers.
by msla 7y ago
There's the TPK Algorithm, but it still doesn't show off certain parts of the language, such as dynamic memory allocation or passing around references/pointers. Of course, not every language has those things, and it was invented to demonstrate precisely the kinds of languages which don't, such as Eisenhower-era FORTRAN. It does have user input as well as output, plus iteration and conditionals.
https://en.wikipedia.org/wiki/TPK_algorithm https://en.wikipedia.org/wiki/TPK_algorithm