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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!