Write a program to:
1) Accept two integers (using scanf()).
2) Print the two integer variables.
3) Show the working of both the operators used for division.
4) Write one output.
Answers
Answered by
1
Explanation:
int x,y;
scanf("%d%d", &x,&y);
printf("The integer values are %d %d", x,y);
printf("The quotient is %d\nThe remainder is %d", x/y,x%y);
input:
5 2
output:
The integer values are 5 2
The quotient is 2
The remainder is 1
Similar questions