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.
Please help.
Code:
#include <stdio.h>
int main (void)
{
int num1;
int num2;
int num3;
int num4;
int ans;
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);
return 0;
} // main