#include <stdlib.h> int a = 0, b = 0; scanf("%d, %d", &a, &b); if(!a || !b) { printf("Input errors, Program will to exit."); exit(1); }