Since you code works nicely except that the 1's and 0's come out backwards, howabout starting the inner loop with j = i and reduce it by 1 each time, stopping at 1?
ie
for (j = i; j >= 1 ; j--)
{
if (j % 2 == 0)
{
Console.Write("0 ");
}
else
{
Console.Write("1 ");
}
}
I haven't tried it, just an idea for you. :)
[edit]Converted to code block to preserve formatting[/edit]
[edit]Cheers! :) Ali[/edit]