Question

7. Consider the following recursive function: package javaapplication293; public class JavaApplication293 public static void main Stringl args) recFun(7) public static void recFun int u) if (-= 1 ) System.out. print(Stop! ); else System.out.print(Go ); recFun(u-1);

media%2F789%2F789ca8c8-0487-4757-a5a5-7f

0 0
Add a comment Improve this question Transcribed image text
Answer #1

ANSWER:-

recFun(7)  

OUTPUT:-

Go 
Go 
Go 
Go 
Go 
Go 
Stop!

recFun(3)

OUTPUT:-

Go 
Go 
Stop!
Add a comment
Know the answer?
Add Answer to:
7. Consider the following recursive function: package javaapplication293; public class JavaApplication293 public static void main Stringl...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT