for(int i = 1; i < 10;i++)
{
for(int d = 1;d < 10;d++)
{
your main loop here is the d, it runs on collums, so it will print you 1 through 9, and 'i' stays on the first line. when you reached 9 on 'd', the i will ++, and go to the second line, but it didn't go there because you didn't write that command.