Search:

Type: Posts; User: javapenguin

Search: Search took 0.55 seconds.

  1. Replies
    2
    Views
    3,948

    Re: Triangle printing (for loop)

    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);
    ...
  2. Replies
    2
    Views
    3,948

    Re: Triangle printing (for loop)

    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
Results 1 to 2 of 2