Program to Compute Quotient and Remainder

#include<stdio.h>
int main()
{
    int dividend, divisor, quotient, remainder;
    printf("Enter Dividend: ");
    scanf("%d",÷nd);
    printf("Enter Divisor: ");
    scanf("%d",&divisor);

    // Computes quotient
    quotient = dividend / divisor;

    remainder = dividend % divisor;

    printf("Quotient = %d\n",quotient);
    printf("Remainder = %d\n",remainder);

    return 0;
}

Output

Enter Dividend: 25
Enter Divisor: 6
Quotient = 4
Remainder = 1