int x; != int x=0;

There is work being done in the loop. I just ignored it for the post since it did not matter what operations were in there, except for a serial print.