/* * Program to get two numbers from the user and print their sum and * product. * * Author: B. L. Massingill */ #include int main(void) { int input1; int input2; int sum; int product; input1 = 0; input2 = 0; printf("enter two numbers to add and multiply:\n"); scanf("%d", &input1); scanf("%d", &input2); sum = input1 + input2; product = input1 * input2; printf("the sum of %d and %d is %d\n", input1, input2, sum); printf("the product of %d and %d is %d\n", input1, input2, product); return 0; }