Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Meet and Greet (http://www.go4expert.com/forumdisplay.php?f=58)
-   -   asterisk triangle in dev.c (http://www.go4expert.com/showthread.php?t=23415)

evarei 25Sep2010 11:22

asterisk triangle in dev.c
 
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:


All times are GMT +5.5. The time now is 21:19.