User-952121411 posted
Yep here it is:
Dim MyIntList As New List(Of Integer)
Dim x As Integer = 1
For j As Integer = 1 To 11
For i As Integer = x To 11
MyIntList.Add(i)
If (x > 1) And (i = 11) Then i = 0
If (x > 1) And (i = (x - 1)) Then Exit For
Next
x += 1
Next
An interview or logic question by chance.
I didn't recognize a number pattern I am familiar with (which is almost none) so if that is a know pattern
they may be a mathematically better way to solve this problem. There is probably other ways to refine the code, but what I provided you will spit out those 121 numbers in the exact order you provided.
Hope this helps! 