To delay after a wrong answer you busy wait, meaning checking the time over and over till enough time passes.
Instead just use the sleep() function call.
Log in to post a comment.