Program:
int main()
{
int num1, num2;
int quotient, remainder;
printf("Enter Divident : ");
scanf("%d",&num1);
printf("Enter Divisor : ");
scanf("%d",&num2);
quotient= num1/num2;
remainder= num1%num2;
printf("quotient : %d\nremainder : %d",quotient, remainder);
}
Output: