Hi, i'm trying to build a program to count squares inside of squares (i don't know how to explain better, take a look at the link). The program worked out all right, but when i tried to build a while loop, starts to output incorrect results... By the way, i'm using Visual C++ 2010.