Subj : Re: Newbie help again To : borland.public.cpp.borlandcpp From : Bruce Salzman Date : Fri Jul 30 2004 01:20 pm > I tried that, but I got even another error. These are the errors I'm > getting: > > Error E2141 integertest.c 9: Declaration syntax error in function main > Error E2379 integertest.c 12: Statement missing ; in function main > Warning W8004 integertest.c 15: 'd' is assigned a value that is never > used in function main > > Here is my int main: > > int a, b, c, d <<<< Need semicolon here! > > printf("Input 3 numbers"); > scanf("%d%d%d", &a, &b, &c); > d = a + b + c <<<< And here! > printf( "Sum is %d", d); > > return 0; Regards, Bruce --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.732 / Virus Database: 486 - Release Date: 7/29/04 .