Question: QUESTION 1: /* Print a pattern with n rows given n as input n number of rows for the pattern, integer (int) * summary :
QUESTION 1:
/*
Print a pattern with n rows given n as input
n number of rows for the pattern, integer (int)
* summary : This method prints a triangle pattern.
* For example n = 5 will display the output as: It should print a pyramid of odd numbers of asterics
*
***
*****
*******
*********
* returns : N/A
* return type : void
*/
private static void PrintTriangle(int n)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
