About the Pascal compiler
Classic structured programming. Compiled online. Run Pascal code in your browser with no install and no signup — the editor, the input and the output share one screen. Pascal is executed by a remote runtime: your code is submitted to it and the output is returned to this page.
Press Run to execute the program, edit it and press Run again, or paste your own code over it. Everything you type stays in the page; the editor caches your work locally so a reload does not lose it.
A Pascal example
This is the program the Pascal editor opens with — run it as it is, then change it.
program StudentReport;
var
names: array[1..4] of string;
scores: array[1..4] of integer;
i, j, temp: integer;
tempName: string;
total: integer;
average: real;
begin
names[1] := 'Alice'; scores[1] := 92;
names[2] := 'Bob'; scores[2] := 87;
names[3] := 'Charlie'; scores[3] := 95;
names[4] := 'Diana'; scores[4] := 88;
{ Bubble sort by score descending }
for i := 1 to 3 do
for j := 1 to 4 - i do
if scores[j] < scores[j+1] then
begin
temp := scores[j]; scores[j] := scores[j+1]; scores[j+1] := temp;
tempName := names[j]; names[j] := names[j+1]; names[j+1] := tempName;
end;
writeln('Student Rankings:');
writeln('------------------------');
total := 0;
The editor opens with the full program.
More Systems & Low-Level compilers
Browse all 109 languages — the same editor runs each of them, in the browser or on a shared runner.