My assignment in my Java course is to make 3 triangles. One left aligned, one right aligned, and one centered. I have to make a menu for what type of triangle and then input
for(int i=1;i<=5;i++) { for(int j=5;j>=i;j--) { System.out.print(" "); } for(int j=1;j<=i;j++) { System.out.print("*"); } for(int j=1;j<=i-1;j++) { System.out.print("*"); } System.out.println(""); } * ***