#include int main(){printf(" enter two integers and ill add them \n");int integer1;int integer2;scanf("%d,%d",&integer1, &integer2);int sum;sum = integer1+integer2;printf("sum is %d\n", sum);return 0;}when i run this code the sum is incorrect like when i type in 44 55 it says the sum is 109. whats wrong with the code?
int main(){printf(" enter two integers and ill add them \n");
int integer1;int integer2;
scanf("%d,%d",&integer1, &integer2);
int sum;sum = integer1+integer2;
printf("sum is %d\n", sum);
return 0;
}
when i run this code the sum is incorrect like when i type in 44 55 it says the sum is 109. whats wrong with the code?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here