Question: (this is java 2) Question 6: 1- Write a recursive method named output that take as parameter integer n, the method should print '+' n
Question 6: 1- Write a recursive method named output that take as parameter integer n, the method should print '+' n times followed by '\#' n times. Do not use any loops, use only one variable n. for Example 1-ifn=2output:++## 2-ifn=4output:++++#### 2- Write a java program to ask the user to enter the positive integer (n) and call the method output to show output on the screen
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
