Divide two integer values: how to use div_t and div
#include <stdio.h> #include <stdlib.h> int main () { div_t divresult; divresult = div (28, 5); printf ("28 / 5 = %d ( %d", divresult.quot, divresult.rem); return 0; }