You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
monaco-editor/website/index/samples/sample.pascal.txt

29 lines
460 B
Plaintext

program GreetingsNumberOfTimes;
{$APPTYPE CONSOLE}
{$R *.res}
uses
System.SysUtils;
var
greetingsMessage: string;
numberOfTimes, i: integer;
begin
try
{ TODO -oUser -cConsole Main : Insert code here }
greetingsMessage := 'Hello World!';
numberOfTimes := 10;
for i := 1 to numberOfTimes do
begin
Writeln(greetingsMessage);
end;
except
on E: Exception do
Writeln(E.ClassName, ': ', E.Message);
end;
end.