I made a simple adding calculator in C and when I use it the sum is off by like 500000. Here is the code:
BTW:Im using dev-c++.Code:#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { int a,b,sum; printf ("please type two numbers:\n"); sum=a+b; scanf ("%d,%d",&a,&b); printf ("sum=%d",sum); system("PAUSE"); return 0; }