[anjuta-list] Anjuta new user-why is there an error code with this simple C program?




#include <stdio.h>
int main(void)
{
   int dogs;
printf("How many dogs do you have?\n");
   scanf("so you have %d dog(s)!\n", dogs);
   return 0;
   }



....../C Programming /project1/ff.c: line 2: `int main(void)'

----------------------------------------------
Program exited successfully with errcode (2)
Press the Enter key to close this terminal ...


THANKS FOR YOUR HELP



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]