Message-ID: <370A2428.7555B650@accord-soft.com> Date: Tue, 06 Apr 1999 20:41:36 +0530 From: Sunil V Organization: Accord Software & Systems Pvt. Ltd. X-Mailer: Mozilla 4.5 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: DJGPP problem Content-Type: multipart/mixed; boundary="------------455ACECB8496062BA530BFFE" Reply-To: djgpp AT delorie DOT com This is a multi-part message in MIME format. --------------455ACECB8496062BA530BFFE Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, This is w.r.t. that reading n lines problem. Instead of using sscanf u can use a dummy **getchar** function just after scanf to eat up the "\n" which is taken as one line. code follows: scanf ("%d", &z); getchar(); /* dummy - to eat up unwanted end-of-line character */ printf ("Text:\n"); for (i=0;i