#include <stdio.h>
int main()
{
int dividend, divisor, quotient, remainder;
printf(“Enter the dividend: “);
scanf(“%d”, ÷nd);
printf(“Enter the divisor: “);
scanf(“%d”, &divisor);
quotient = dividend / divisor;
remainder = dividend % divisor;
printf(“Quotient = %d\n”, quotient);
printf(“Remainder = %d\n”, remainder);
return 0;
}
/ is the division operator and gives the quotient.% is the modulus operator and gives the remainder.25 / 4: This website uses cookies.