Rectangles (2)

Write a program that prints n × m rectangles. Print each rectangle in an
independent way, fill it up with 9, followed by 8, …followed by 0, etc.

Input

The input consists of several pairs of natural numbers.

Output

For every pair (n, m), print a rectangle of size n × m filled with
9,8,…0, 9, …. Separate two rectangles with an empty line.

Problem information

Author: Unknown
Translator: Maria Serna

Generation: 2026-01-25T21:52:34.578Z

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