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.)


(a) What does the procedure Prog1 print for a positive integer n?