I'm trying to create this output using the for loop :
aaaaa
*aaaa
o*aaa
oo*aa
ooo*a

this is the code i wrote:

public class Triangles