1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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