I cannot seem to figure out why this will not work!?
http://i.imgur.com/PuYO8.png
That is the code as you can see everything is ok and all should be working fine.
http://i.imgur.com/gnr4v.png
Now you can see i enter 111 into the stdin, this should be represented in the next picture as 111.
http://i.imgur.com/Xj62h.png
But as you can see that's not the case, for whatever reason num4 ALWAYS prints itself even when the if conditions are against it. When i delete num4 completely from the code everything works as per usual. Am i doing something wrong?? cos the code all looks identical and should be working fine surely?? Sorry i don't know much about C programming :/