Question: problem to unassigned in procedure




hey primes please i need help. i´m trying to create a procedure capable to find an arbitrary distance. at some point in loop clause, is important to 'unassigned'  the variables solved and here where i have problem. it work fine in a loop, but gone wrong in a procedure. i put the file here, so please help

Please Wait...