hello, i'm total noob at c coding. My teacher gave me some codes to test (addition program)
Code:
#include <stdio.h>
#include <conio.h>
main()
{
clrscr()
int n1,n2,sum;
printf("\nInput two numbers:");
scanf("%d,%d",&n1,&n2);
sum = n1+n2
printf("\nThe sum is "%d",sum);
getch();
}
when i compile the code
i get an error
Expression syntax in function main()
undefined symbol 'n1' in function main()
undefined symbol 'n2' in function main()
undefined symbol 'sum' in function main()
i don't know what to do with this n1, n2,sum or make them a defined symbol i guess. plss help