asterisk triangle in dev.c

Discussion in 'Meet and Greet' started by evarei, Sep 25, 2010.

  1. evarei

    evarei New Member

    Joined:
    Sep 25, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    phillipines
    pls help me out, how do i do this in dev.c its a bit difficult for a new student:

    Q. write a program that will display the following pattern,given the value of n.
    1.example if n=5, output will be:
    Code:
             *
           ***
         *****
       *******
     *********
    
    2.example if n=4,output will be:
    Code:
    ****
      ***
        **
          *
    
    txn 4 ur help :happy:
     
    Last edited by a moderator: Sep 25, 2010

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice