How to GCD in Pascal - Code Snippet

How to perform 'GCD' in Pascal.

example.pas
// Task: GCD
// Language: Pascal

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