I cannot seem to figure out why this will not work!?
That is the code as you can see everything is ok and all should be working fine.
Now you can see i enter 111 into the stdin, this should be represented in the next picture as 111.
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 :/