C/C++: Effectuer une divison avec ‘div_t’

Author:


{filelink=13996}


#include 
#include 

int main ()
{

 div_t resultat = div (123, 5);

  printf ("123 / 5 = Qoutient:%d; Reste %d", resultat.quot, resultat.rem);
  return 0;
}

Leave a Reply

Your email address will not be published. Required fields are marked *