public class Triangles
{
public static void main(String args[])
{
/* int q=5;
for (int p=1; p<=q; p++ )
{
System.out.println("P is: " + p);
...
Type: Posts; User: javapenguin
public class Triangles
{
public static void main(String args[])
{
/* int q=5;
for (int p=1; p<=q; p++ )
{
System.out.println("P is: " + p);
...
aaaaa
*aaaa
o*aaa
oo*aa
ooo*a
Ok
I take it you start with all a's
then you change the first a to a *
then you change that star to an o and move the * over to the second a