This is a very simple math program and I can't get it to compile for the life of me. I can't find anything at all wrong with it. I'm wondering if it's the text editor I'm using inserting invisible characters into my code.
int main (void)
printf("\nEnter four numbers in the format nnn nnn nnn nnn\n");
scanf("%d %d %d %d", &num1, &num2, &num3, &num4); \
ans = ( num1 + num2 - num3 ) * num4;
printf("\n(%d + %d - %d) * %d = %d\n" num1, num2, num3, num4, ans);
} // main