Function to print a diamond shape
Justin Whear
justin at economicmodeling.com
Thu Mar 20 14:30:47 PDT 2014
On Thu, 20 Mar 2014 14:25:02 -0700, Ali Çehreli wrote:
> This is a somewhat common little exercise: Write a function that takes
> the size of a diamond and produces a diamond of that size.
>
> When printed, here is the output for size 11:
>
> *
> ***
> *****
> *******
> *********
> ***********
> *********
> *******
> *****
> ***
> *
>
> What interesting, boring, efficient, slow, etc. ways are there?
>
> Ali
What's the appropriate output for an even number?
More information about the Digitalmars-d-learn
mailing list