I was having the same issue as well and the reason was this was what I had in the last section of code:
Code:
switch (iterations % 4)
{
case 0:
Console.WriteLine(".");
break;
case 1:
Console.WriteLine("o");
break;
case 2:
Console.WriteLine("O");
break;
case 3:
Console.WriteLine("@");
break;
}
}
Console.WriteLine("\n");
and it should have been this:
Code:
switch (iterations % 4)
{
case 0:
Console.Write(".");
break;
case 1:
Console.Write("o");
break;
case 2:
Console.Write("O");
break;
case 3:
Console.Write("@");
break;
}
}
Console.Write("\n");
So by changing from WriteLine to Write I was able to get the image from the book. Hope this helps solve your problem as well. :)