Ex4.3, remainder working, negative numbers not working