Why the following code could/will result in infinite loop?
x=0;
y=0;
while(x<100)
{
minnum=100;
maxnum=100;
while(y<150)
{
if(random[x][y]<minnum)
{
minnum=random[x][y];
minX=x;
minY=y;
y++;
}
else if(random[x][y]>maxnum)
{
maxnum=random[x][y];
maxX=y;
maxY=y;
y++;
}
}
x++;
y=0;
}