Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a Recursive Print #1277

Open
winsonrich opened this issue Oct 25, 2018 · 2 comments
Open

Create a Recursive Print #1277

winsonrich opened this issue Oct 25, 2018 · 2 comments

Comments

@winsonrich
Copy link

Write a class method recursivePrint(int count) of a class Recursion which prints "z y x w "
on the first line, "z y x " on the second line, ..., "z " on the fourth line by recursion if count is 4. If
count is n (n <= 26), n lines should be printed and the first line contains "z y x ...? ", where "?" is the
nth letter starting from "z". Note that there is a space after each letter.
Test it using a call Recursion.recursivePrint(5) in the main() method a class TestRecursion.

@someone-1
Copy link
Contributor

what if n exceeds 26?

@pranalibose
Copy link

Hello, I would like to work on this. Can I take it up?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants