Print a diamond star pattern for input N
Filed under Indus Valley Partners
The question
Write a program that prints a diamond of stars for a given N (for example N=7 gives a pyramid widening to 7 stars then narrowing back).
No write-up yet. Related questions below have one.
Related Indus Valley Partners questions
Collected from public candidate posts and coding forums. Updated Nov 2026.