題組內容
7. procedure Prog1 (n)
if (n>1)
then
(Apply the procedure Prog1 to n/2 (integer division), and then print out the value (n mod 2).)
else
(Print out the value n.)
(c) How to modify this procedure Prog1 into a new procedure Prog2 that returns 1 if n is of odd parity or 0 if n is of even parity? (20%)