Write a recursive method writeblock char int int that uses


a. Write a recursive method writeBlock (char, int, int) that uses the recursive method writeLine (char, int) to write m lines of n characters each. For example, writeBlock (‘ *' , 5, 6) produces the following output:

*****

*****

*****

*****

*****

b. How would you modify the program to show the following output?

******

*****

****

***

**

*

Solution Preview :

Prepared by a verified Expert
Programming Languages: Write a recursive method writeblock char int int that uses
Reference No:- TGS01702137

Now Priced at $35 (50% Discount)

Recommended (95%)

Rated (4.7/5)