Professional Documents
Culture Documents
Q2/ Create a class named Triangle that has a method, the method receives an integer and uses that
integer to print asterisks to form a triangle like below:
Method parameter = 10
Method output:
**********
*********
********
*******
******
*****
****
***
**
*