Find quotient and remainder
// C program to find out the quotient and remainder of a division operation
#include <stdio.h>
int main(void) {
int dividend, divisor, q, r; // variable declaratiion
printf("Enter the Dividend: "); // user input
scanf("%d", ÷nd);
printf("Enter the Divisor: "); // user input
scanf("%d", &divisor);
q = dividend / divisor; // to find quotient
r = dividend % divisor; // to find remainder
printf("Quotient: %d\n", q); // printing the result
printf("Remainder: %d\n", r); // printing the result
return 0;
}