Making a much larger program with a menu to determine what * triangle you would like but can not get the triangle like this to work:
**********
-*********
--********
---*******
----******
-----*****
------****
-------***
-------- **
----------*
Without the " - "
It keeps printing out in a straight line be grateful if someone could point me in the right direction.
public class tester { public static void main(String[] args) { final int x = 10; for (int row = 0; row < x; row ++){ for (int blank = 1; blank <= row; blank ++){ System.out.print (" "); } for (int a = x - row; a > 0; a --){ System.out.print ("*"); } } } }