Thread: Triangle pattern?

  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, 02:31 PM
  2. Right Triangle Program
    By BSmith4740 in forum C# Programming
    Replies: 9
    Last Post: 02-27-2008, 12:24 AM
  3. Triangle pattern
    By dynamethod in forum C++ Programming
    Replies: 34
    Last Post: 11-10-2007, 05: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-14-2002, 12:29 AM