I am having a strange problem with Code:Blocks. After writing C program i click on Build and run, it compiles in fraction of a second but then a new window opens and after around 12 seconds output appears on the window.
It takes this much time for even basic code like
The problem was with antivirus. Whitlisting gcc,g++ and codeblocks solved the problem.