× Didn't find what you were looking for? Ask a question
Top Posters
Since Sunday
5
k
4
c
4
M
3
t
3
i
3
B
3
k
3
m
3
c
3
o
3
l
3
New Topic  
DJ DJ
wrote...
Posts: 772
10 years ago
Which of the following is the base case in the recursive function below?

   def xxx(N):
       if (N == 0):
              print(N)
       else:
              xxx(N - 1)

   A. N > 0      B. N = 0      C. N < 0   

This is for my computing programming course
Read 843 times
2 Replies

Related Topics

Replies
wrote...
10 years ago
B. N = 0
DJ Author
wrote...
10 years ago
Thank you for helping me with my computer science class.
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  782 People Browsing
Related Images
  
 1992
  
 353
  
 300
Your Opinion

Previous poll results: How often do you eat-out per week?