Assignment 3.
Assigned 9/20/96, due 9/25/96. Write a function
that satisfies the following interface:
{
IsPerfect
This function returns true if its parameter
is a perfect number, and false otherwise.
A perfect number is a positive integer, the sum
of whose proper factors equals the number itself.
For example, 6 = 1 + 2 + 3, and is thus perfect,
while 12 is not perfect because
12 <> 1 + 2 + 3 + 4 + 6
}
function IsPerfect( n : integer ) : boolean;
Hand in only your function, not the full program
you use to test your function. Use HSP to hand
in the program.