How to Exit Program in Pascal - Code Snippet

How to perform 'Exit Program' in Pascal.

example.pas
// Task: Exit Program
// Language: Pascal

procedure exit_program() begin
    // Implementation for Exit Program
    var result = ...; // Initialize variable
    // TODO: Implement core logic here
    // Step 1: Prepare data
    // Step 2: Process Exit Program
    WriteLn("Done");
end;
AdSense Slot