printing diamond shape with *

printing diamond shape with * using while loop

Page 1 of 1

1 Replies - 2405 Views - Last Post: 18 May 2010 - 11:22 AM Rate Topic: -----

#1 talha hanjra  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 18-May 10

printing diamond shape with *

Posted 18 May 2010 - 11:20 AM

can you tell me how can i print the following shape using one nested loop and maximum one two cout statements
*
***
*****
*******
*****
***
*

This post has been edited by JackOfAllTrades: 18 May 2010 - 11:26 AM
Reason for edit:: Topic was closed because of this post. User did not follow the rules

Is This A Good Question/Topic? 0
  • +

Replies To: printing diamond shape with *

#2 IngeniousHax  Icon User is offline

  • |>|20-514<|{3|2

Reputation: 78
  • View blog
  • Posts: 1,358
  • Joined: 28-March 09

Re: printing diamond shape with *

Posted 18 May 2010 - 11:22 AM

SURE! could we see your best effort first?
Don't forget your tags :code:

That diamond shape is a lot easier than:
                      *
                     ***
                    *****
                   *******
                  *********

This post has been edited by IngeniousHax: 18 May 2010 - 11:23 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1