Triangle pattern?

This is a discussion on Triangle pattern? within the C++ Programming forums, part of the General Programming Boards category; Help i need to print a triangle pattern using "$" signs. Preferably using for loops. How can i start?...

  1. #1
    Unregistered
    Guest

    Exclamation Triangle pattern?

    Help i need to print a triangle pattern using "$" signs. Preferably using for loops. How can i start?

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    101
    How can i start?
    Code:
    #include <iostream>
    
    int main()
    {
        std::cout << "This program will print a triangle in a few moments..." << std::endl;
    
        // TODO: Add triangle drawing code
    
        return 0;
    }
    - lmov

  3. #3
    Registered User
    Join Date
    Aug 2001
    Posts
    154
    Partly depends on what type of triangle and what orientation it has. Basically, use two nested for loops.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Recursive Triangle Function
    By w2look in forum C Programming
    Replies: 14
    Last Post: 11-13-2010, 01:31 PM
  2. Right Triangle Program
    By BSmith4740 in forum C# Programming
    Replies: 9
    Last Post: 02-26-2008, 11:24 PM
  3. Triangle pattern
    By dynamethod in forum C++ Programming
    Replies: 34
    Last Post: 11-10-2007, 04:54 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. Triangle Pattern
    By Unregistered in forum C Programming
    Replies: 16
    Last Post: 02-13-2002, 11:29 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21