Question: 1. Create a static method called triangle that will take a single integer as an input parameter and returns nothing. This method will draw a
1. Create a static method called triangle that will take a single integer as an input parameter and returns nothing. This method will draw a triangle using asterisks to the size of the number given. Size of 5 means that we have 5 rows of increasing asterisks. Your method must work for any positive integer (assume that a correct value is always given and that the method will not be given a value that would not fit on a page) (8) Value of 5 would output: Value of 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
