Encyclopedia  |   World Factbook  |   World Flags  |   Reference Tables  |   List of Lists     
   Academic Disciplines  |   Historical Timeline  |   Themed Timelines  |   Biographies  |   How-Tos     
Sponsor by The Tattoo Collection
PL/0
Main Page | See live article | Alphabetical index

PL/0

PL/0 is a simplified version of a general-purpose programming language PL/I, designed for educational purpose.

The following example is taken from [1].

VAR x, squ;

PROCEDURE square; BEGIN

  squ := x * x
END;

BEGIN

  x := 1;
  WHILE x <= 10 DO
  BEGIN
     CALL square;
     !squ
  END
END.

This program outputs the squares from 1 to 10.

This article is a stub. You can help Wikipedia by [ expanding it].