Ask your own question, for FREE!
Computer Science 18 Online
kekeman:

Need help

kekeman:

1 attachment
CrazyCrimson:

mental or physical??

imqwerty:

who made this question 💀

kekeman:

Wym?

imqwerty:

you think this function will work at all?

kekeman:

Yes i am pretty sure it will

imqwerty:

it won't =)

kekeman:

Oh ok

imqwerty:

yeah

kekeman:

Well im trying to find the basecase sooo

imqwerty:

it's not even recursive

imqwerty:

Also, it would be best if you revisited the basics of recursion.

kekeman:

Ok.......

kekeman:

@smokeybrown I need you sirrr!!!!

SmokeyBrown:

Apologies for the late response, I've been offline during the weekend The function seems like it has a blank space on the second-to-last line __________(n+1) I think this is supposed to be the recursive part, where the blank would be filled with the function name "countdown", so the function would call itself countdown(n+1) That being said, it looks like the base case of this (potentially) recursive function would be n==10, because that is the case in which the function does not call itself; until then, the function does call itself and remains recursive

kekeman:

It was n==10 and your fine i just had to do more digging in my lesson plan

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!