Message-ID: <001701c03240$9e9c19e0$6866fea9@desktop> From: "Steven C. Hendrickson" To: References: <01C031F3 DOT 9F9DB260 DOT scottferg1 AT earthlink DOT net> Subject: Re: C Programming Question Date: Mon, 9 Oct 2000 15:31:03 -0700 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 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Reply-To: djgpp AT delorie DOT com You have a Capital 'I' in your 'if()' statement. Maybe that is part of it, along with the 'int' before the 'If' . good luck, ----- Original Message ----- From: "Scott" Newsgroups: comp.os.msdos.djgpp To: Sent: Monday, October 09, 2000 1:19 PM Subject: C Programming Question > > 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 '(' > > > 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)) > 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. > >