Results 1 to 6 of 6
  1. #1
    LinxuS is offline Member
    Join Date
    Jan 2008
    Posts
    6
    Rep Power
    0

    Default Need help coding a rhombus in stars

    Deleting my post.
    Last edited by LinxuS; 10-18-2008 at 11:12 AM.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  3. #3
    LinxuS is offline Member
    Join Date
    Jan 2008
    Posts
    6
    Rep Power
    0

    Default

    Deleting my post.
    Last edited by LinxuS; 10-18-2008 at 11:13 AM.

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,516
    Rep Power
    25

    Default

    The pattern I see from what you posted is:
    Output 4 spaces then Literal1
    in a loop
    output n spaces then Literal2
    decr n by 1 until 0
    end loop
    output Literal1

    Is there a relationship between the number of leading spaces on the first line and the number of lines? And between the number of lines and the spacing between the * on the middle lines?
    And on the number of * in the first and last line?
    Last edited by Norm; 10-17-2008 at 09:06 PM.

  5. #5
    LinxuS is offline Member
    Join Date
    Jan 2008
    Posts
    6
    Rep Power
    0

    Default

    Deleting my post.
    Last edited by LinxuS; 10-18-2008 at 11:13 AM.

  6. #6
    LinxuS is offline Member
    Join Date
    Jan 2008
    Posts
    6
    Rep Power
    0

    Default

    Deleting my post.
    Last edited by LinxuS; 10-18-2008 at 11:13 AM.

Similar Threads

  1. stars
    By nalinda in forum New To Java
    Replies: 3
    Last Post: 08-25-2009, 11:48 AM
  2. Help On Coding problem
    By mandrake446 in forum New To Java
    Replies: 3
    Last Post: 12-08-2007, 07:01 AM
  3. Error in my coding
    By one198 in forum New To Java
    Replies: 2
    Last Post: 10-13-2007, 05:07 AM
  4. Problem in my coding
    By one198 in forum New To Java
    Replies: 9
    Last Post: 08-09-2007, 10:07 AM
  5. Help with program coding
    By cachi in forum AWT / Swing
    Replies: 1
    Last Post: 07-31-2007, 07:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •