With all due respect to you and the admin noix for your experience !!
but on compiling the code given by noix this is the output i got for the sample input
1
1
2
2
88
88
and my code gives the output as required !!
and i did not get why are you not getting the answer with my code could you please be more precise.
IT is just the nature of scanf() in noix's code that it echoes the input as it is typed.
getch() does not do that !