Phantom    up
  similar languages: Modula   Oberon   Obliq   Leda   Pascal   PL/0   PL/0E   YAFL  
 


 Hello World   Michael Neumann
(* Hello World! *)

module helloworld;

import stdio;

begin
   stdio.puts("Hello World\n");
end helloworld.
Prints "Hello World" onto the screen.


 Squares   Michael Neumann
module Squares;

import stdio, fmt;

begin
   for i:=1 to 10 do
      stdio.puts(fmt.fint(i*i) @ " ");
   end;
end Squares.
Outputs the squares from 1 to 10.