Drawing a triangle

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lindafay1123
    New Member
    • Dec 2009
    • 3

    Drawing a triangle

    Hello, I have been tring to write the visual basic program that will out put a triangle. A program the requests an odd number and start the triangle with that number and go down with odd numbers till reaches 1 below is what I wanted it to look like I have got it to do diffent things but not this any help

    example of what I need it to look like:
    * * * * * * * * * * *
    * * * * * * * * *
    * * * * * * *
    * * * * *
    * * *
    *
    any help
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    This reads like homework.

    Hint 1: Try hitting Google with terms of your programming language and primary terms of what you want to do. For example "C# custom events" or "VB datagrid Excel". I've found this to be a very effective tool.
    Hint 2: Your text book
    Hint 3: Your instructor
    Hint 4: Posting guidelines regarding homework assignments.


    TIP: Read through the MSDN Library about each new control you are learning.

    Read through each of its methods. You don't have to experiment with each one, but if you read through the definition of all the methods you have them stuck in the back of your head a little better.

    About as much hint as I can suggest is
    One loop for the lines...
    Inside that a loop for the number of asterisks.

    Comment

    Working...