#### This program evaluates and Compute Quotient Remainder when an integer is divided by another integer.

To understand this Program to Compute Quotient Remainder, you should have the knowledge of following C programming topics:

- Data Types
- Constants
- Variables
- Operators

#### Program to Compute Quotient and Remainder

```
#include <stdio.h>
int main()
{
int dividend, divisor;
int quotient, remainder;
printf("Enter dividend: ");
scanf("%d",÷nd);
printf("Enter divisor: ");
scanf("%d",&divisor);
// Computes quotient
quotient= dividend/divisor;
// Computes remainder
remainder= dividend%divisor;
printf("quotient: %d, remainder: %d\n",quotient,remainder);
return 0;
}
```

**Output**

```
Enter dividend: 25
Enter divisor: 4
Quotient = 6
Remainder = 1
```

In this program, the user is asked to enter two integers (dividend and divisor) which are stored in variable

and `dividend`

respectively.`divisor `

Then the quotient is evaluated using division/operator and stored in the variable

.`quotient`

Similarly, the remainder is evaluated using modulus % operator and stored in

variable.`remainder`

Finally, the quotient and remainder are displayed using `printf()`

function.

#### Related C Programs

- C program for factorial
- C program for Fibonacci series
- C Program to Find ASCII Value of a Character
- C Program to Swap Two Numbers
- C Program to find Factorial.
- C Program to find Fibonacci series.
- C Program to compute Quotient and Remainder.
- C Program to Find ASCII value of a Character.
- C Program to Swap two Numbers.
- C Program to Find the size of int, float, double and char.

Ask your questions and clarify your/others doubts on C Program to Compute Quotient and Remainder by commenting.** Documentation**