0
ice woman's Avatar
Light Poster
finally I could put the shape that I wanted...

it should be like this with using (for)only

Thanks for your cooperation
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Divide into small parts and draw it.

First
*
**
***
****
and then take the next step.
0
ice woman's Avatar
Light Poster
you mean like this
*
**
***
****

then

*******************
*****************
***************
***********
then

******************
****************
*************
**********

then

****
***
**
*
ok thanks alot sir

i guess i will try to make
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
You probably won't be able to do it exactly as you've drawn it but this depends how you're doing the output. Is it straight to console or are you writing the output to a file that can be processed to display it centre-justified as in the illustration? The problem can be illustrated easily: which of the following represents how you want the first four lines drawing?
Code:
   *
  * *
 * * *
* * * *

   *
   **
  ***
  ****

   *
  ***
 *****
*******