First thing that jumps out at me:
main() should be "int main (void)" and you should have a return statement at the end of main.
also:
scanf("%d", &answer);
you forgot the &
Type: Posts; User: circuits2
First thing that jumps out at me:
main() should be "int main (void)" and you should have a return statement at the end of main.
also:
scanf("%d", &answer);
you forgot the &