hello..
i tried to understand your question and i think that's what you want
namespace ConsoleApplication1 {
class Program {
static void Main(string[] args)
{
for (int i = 0; i <9; i++)
{
for (int x = 0; x < 9; x++)
{
if ((x + 1 + i) > 9)
{
Console.Write(" {0} ", (x + i + 1) % 9);
}
else
{
Console.Write(" {0} ", (x + 1 + i));
}
}
Console.WriteLine("\n");
}
Console.Read();
}
}
}
and the output will be look like this:
1 2 3 4 5 6 7 8 9
2 3 4 5 6 7 8 9 1
3 4 5 6 7 8 9 1 2
4 5 6 7 8 9 1 2 3
5 6 7 8 9 1 2 3 4
6 7 8 9 1 2 3 4 5
7 8 9 1 2 3 4 5 6
8 9 1 2 3 4 5 6 7
9 1 2 3 4 5 6 7 8