Rhombus.

Write a program that, given a number n, prints a rhombus of size n.

Input

A natural number n ≥ 1.

Output

Print 2 * n − 1 lines (each followed by a newline), as shown in the
examples. The asterisks on the nth line should not be preceeded by any
spaces.

Observation

Problem information

Author: Hubie Chen

Generation: 2026-01-25T16:01:29.113Z

© Jutge.org, 2006–2026.
https://jutge.org
