So when you compile the code and you get an warning saying something like "line 35: statement has no effect" you should look a little closer at line 35:
Code:
y==temp;
If you're not getting that warning, now is a good time to take a little time-out and read up on how to use your compiler.