You might wanna mark this thread as solved...
anonymous alias commented: pay attention, dude. this crap is over 5 years old. it doenst need obvious commentary. +0
jephthah commented: if you can't understand C, then you need to quit "helping" -1
kvprajapati commented: Well said. +6
Aia commented: fflush(stdin) invokes undefined behaviour -1
jephthah commented: flushing an input buffer is meaningless, and adatapost should know better. -1
ssharish2005 commented: Read the manual and be clear beforr you post. fflush is not meant to flush stdin it for stdout. +0
iamthwee commented: Well said +11
jephthah commented: c code snippets are supposed to be useful. anything compiled in TurboC is useless for most of western civilization. if you wont stop using it, then at least stop subjecting others to it. -1
mrnutty commented: Don't give out the answer just yet. +0