Message-ID: <00eb01c032f1$dd40ea20$0500a8c0@brk> From: "Johan Henriksson" To: Subject: Re: C Programming Question Date: Tue, 10 Oct 2000 21:21:34 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Reply-To: djgpp AT delorie DOT com from: Johan Henriksson, leadprogrammer @ www.realsoftware.cjb.net "It is not the length of life that counts but what you make out of it" - me ---------------------------------------------------------------------------- ----------------------------- > Hello, > > I have a c programming question: > > for the following statement (highlighted in Red) I am getting the error: Prog3_3.cpp(24) Error: Parse error >before '(' That sux because I have colors disabled. I give it a shot. > the statement is: > > for (Count=0;Count<20;Count ++) > > { > printf("\nEnter a number between 10 and 100 (no duplicates) %d;", Count+1); > scanf("%d", &Numbers[Count]); > int If((Numbers[Count]>10)&&(Numbers[Count]<100)) This line? Two errors? Int - What is that doing there??? If - Big 'I' = Bad > printf("\nNumber is between 10 and 100"); > else > printf("\nNumber is not between 10 and 100"); > } > > Can you give me a pointer on why this is doing this, thanks. > >