#include <stdio.h>
#include <stdlib.h>
int main () {
div_t output;
output = div(27, 4);
printf("Quotient part of (27/ 4) = %d/n", output.quot);
printf("Remainder part of (27/4) = %d/n", output.rem);
output = div(27, 3);
printf("Quotient part of (27/ 3) = %d/n", output.quot);
printf("Remainder part of (27/3) = %d/n", output.rem);
return(0);
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/265245.html