Question: Question - 1 4 : What does the following method printMy'Triangle prints when it is called with the argument 4 ? public static void printMyTriangle
Question:
What does the following method printMy'Triangle prints when it is called with the argument
public static void printMyTriangle int sideLength
if sideLength
return;
printMyTriangle sideLength ;
for int ; sideLength;
System.out.print;
System.out.println;
e
a
c
b
d
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
