Write a program in Python that takes an integer (the size)
and prints a square of the specified size with the pattern
illustrated in the following samples. Two different versions of the
same software are shown in the examples below. The first example
displays a size 5 design, whereas the second example shows a size 8
pattern. The pattern's numeric digits should always be a single
digit, and if it goes into double digits, it should warp back to
0.
Enter size of pattern: 5 01234 23456 45678 Enter size of pattern: 8 01234567 23456789 45678901 67890123
Write a program in Python that takes an integer (the size) and prints a square of the specified size with the pattern il
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am