#include int main() { int howmany; // how many integers were read int num1; // the first number of the pair int num2; // the second number of the pair int sum; howmany = fscanf(stdin, "%d %d", &num1, &num2); while (howmany == 2) { sum = num1 + num2; fprintf(stdout, "%d + %d = %d \n", num1, num2, sum); howmany = fscanf(stdin, "%d %d", &num1, &num2); } return(0); }