If I try to run the following simple code under Cygwin on Windows 7,
#include int main() { int i1, i2, sums; printf( \"Enter first integer
you can try for disabling the buffering in stdout by using
setbuf(stdout, NULL);