Thread: simple triangle

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Nov 2005
    Posts
    4

    simple triangle

    hi!
    now i need to build this triangle :
    Code:
       *
      **
     ***
    ****
    imagine it's align to the right.
    i have one solution-
    one major loop that controls the number of lines and two loops inside for managing the spaces and chars.

    can you give me another solution?

    thx!!
    Last edited by -Dizzy-; 11-07-2005 at 09:59 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Resizing a triangle. Why is my code not working?
    By gozu in forum Windows Programming
    Replies: 2
    Last Post: 01-20-2007, 06:40 PM
  2. Stupid Logic Problem Need Outside Viewpoint
    By RP319 in forum C++ Programming
    Replies: 5
    Last Post: 03-03-2005, 10:59 PM
  3. Triangle
    By BB18 in forum C Programming
    Replies: 14
    Last Post: 10-16-2004, 10:59 PM
  4. Just in case: "Odd" Triangle Challenge (for me)
    By BB18 in forum C Programming
    Replies: 3
    Last Post: 10-09-2004, 12:02 AM
  5. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM