we were given a task to create a for loop with where the user gives a number and became this output and we dont know if there is a sequence or an algorithm to it like fibonacci
anyone recognize this pattern?

input: 3

0|2
---
0|2

Nice window. Thanks!

input: 4
01|0
1 |0
----
01|0

Nice window. Thanks!

input: 5

01|01
0 | 0
-----
0 | 0
01|01

Nice window. Thanks!

input: 6

012|12
1  | 0
1  | 0
------
1  | 0
012|12

Nice window. Thanks!

Do you have examples of output for input of 1 and 2?
(Or is the first valid input 3?)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.