Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I have tried to answer this question over 50 times, but it keeps telling me that

ID: 3793733 • Letter: I

Question

I have tried to answer this question over 50 times, but it keeps telling me that there is something wrong with my outputs! can you please help me with my outputs. By the way, I am submitting my assignment through myprogramminglab.

2.16 (Arithmetic) Write a program that asks the user to enter two integers. After obtaining the integers from the user, print out their sum, product, difference, quotient and remainder. SAMPLE RUN #5 arithmetic Interactive session a (Hide Invisibles Highlight None Show Highlighted only Enter an integer:10 Enter another integer:2 The sum is: 12 The product is 20 The difference is The quotient. is 5 The remainder is X 58 of 58: 2017-02-15 16:44:43 W SUBMIT #include

Explanation / Answer

#include <stdio.h>

int main()
{
int x,y;
printf("Enter an integer: ");
scanf("%d", &x);
  
printf("Enter another integer: ");
scanf("%d", &y);
  
printf("The sum is %d ", x + y);
printf("The product is %d ", x * y);
printf("The difference is %d ", x - y);
printf("The quotient is %d ", x / y);
printf("The remainder is %d ", x % y);

return 0;
}

Output:

sh-4.2$ gcc -o main *.c                                                                                                                                                                                                                                                

sh-4.2$ main                                                                                                                                                                                                                                                           

Enter an integer: 10                                                                                                                                                                                                                                                   

Enter another integer: 2                                                                                                                                                                                                                                               

The sum is 12                                                                                                                                                                                                                                                          

The product is 20                                                                                                                                                                                                                                                      

The difference is 8                                                                                                                                                                                                                                                    

The quotient is 5                                                                                                                                                                                                                                                      

The remainder is 0