Mail Archives: djgpp/2000/10/09/18:33:17
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" <scottferg1 AT earthlink DOT net>
Newsgroups: comp.os.msdos.djgpp
To: <djgpp AT delorie DOT com>
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.
>
>
- Raw text -