5 Here is our standardized divisor tree program in Pascal:
11 { recursive function, prints divisor tree of x }
12 procedure printDivisorTree(x: integer);
21 for i := 2 to x div 2 do { find two closest divisors }
50 userInput: string[16];
53 while true do { main loop, read numbers from the user }
56 val(userInput,number,code);
60 printDivisorTree(number);