Chapter 4 Exercise Set 0: Chapter ReviewΒΆ
What happens if you call the
countdown
function introduced in the Recursion section with an argument that is a negative number?Draw a stack diagram for
n_lines
, invoked with the parametern
equal to4
.Write a function named
compare
that takes twoint
arguments,a
andb
, and prints out whethera
is greater thanb
,a
is less thanb
, ora
is equal tob
.