Could you rephrase the question please, because it doesn't make any sense. scanf gets input from the user, I don't understand what "scanf statement does not wait for a input in compiler" means. scanf doesn't wait for anything from the compiler.

Are you having a problem with some code?