Created
August 7, 2019 22:59
-
-
Save parzibyte/08b7b1ca5c258b87b008d14e4ea11642 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
int main(int argc, char const *argv[]) | |
{ | |
// La variable resultadoDeLaDivision es | |
// de tipo div_t | |
div_t resultadoDeLaDivision; | |
resultadoDeLaDivision = div(5, 2); | |
printf( | |
"El cociente es %d y el residuo es %d\n", | |
resultadoDeLaDivision.quot, | |
resultadoDeLaDivision.rem | |
); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment