Integer Division - Code Hang [SOLVED]

OK so, a bit red faced here :blush: - I had somehow added a breakpoint, probably when checking out an error message or something :slight_smile:

Hi all,

In chapter 7 under the ‘Integer Division’ section there is a bit of code that’s giving me an error.

Specifically it’s the following:

When I run this, the output correlates with what’s in the book, but there is also a line that says code[/code] and the program doesn’t terminate, it just keeps running.

Has anyone else come across this? Or does anyone know what’s causing it? A quick google search wasn’t very enlightening I must say.

I’m running OSX 10.9.2 and Xcode 5.1