Squares (3)

Write a program that prints squares n × n. To fill all the squares,
start using 0, 1, …, 9, 0, etc.

Input

Input consists of several natural numbers between 1 and 9.

Output

For every n, print a square of size n × n. Start filling the squares
with 0, 1, …, 9, 0, etc. Separate two squares with an empty line.

Problem information

Author: Unknown
Translator: Carlos Molina

Generation: 2026-01-25T10:40:26.112Z

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