Mega Code Archive
Categories
/
C
/
Math
Quotient and remainder
#include
#include
int main(void) { div_t n; n = div(10, 3); printf("Quotient and remainder: %d %d.\n", n.quot, n.rem); return 0; }