Consider the following simple C program.
//C test #include int main() { int a, b, c; printf(\"Enter two numbers to add\\n\"); scan
you can test this one.
#include int main(void) { int a, b, c; printf("Enter two numbers to add\n"); scanf("%d%d",&a,&b); if(scanf("%d%d",&a,&b) == 2) { c = a + b; printf("Sum of entered numbers = %d\n",c); } return 0; }